Bug 198838

Summary: [WHLSL] Ensure MakeArrayReferenceExpression works
Product: WebKit Reporter: Saam Barati <saam>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: dino, fpizlo, jonlee, justin_fan, mmaxfield, rmorisset
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Saam Barati
Reported 2019-06-13 12:04:56 PDT
There's some iffy looking code in metal codegen. E.g: if (is<AST::PointerType>(makeArrayReferenceExpression.resolvedType())) m_stringBuilder.append(makeString(mangledTypeName, ' ', variableName, " = { ", lValue, ", 1 };\n")); I think it should instead be something like " = lvalue"
Attachments
Saam Barati
Comment 1 2019-06-13 12:06:06 PDT
I'm gonna fly by change it in a patch I'm writing for OOB accesses, but it needs to be tested and thought through in a more thorough way.
Saam Barati
Comment 2 2019-06-13 12:09:39 PDT
(In reply to Saam Barati from comment #1) > I'm gonna fly by change it in a patch I'm writing for OOB accesses, but it > needs to be tested and thought through in a more thorough way. I'm not doing this. The bug is the code is checking the result type. It should be checking the base type.
Myles C. Maxfield
Comment 3 2020-05-05 00:42:29 PDT
WHLSL is no longer relevant.
Note You need to log in before you can comment on or make changes to this bug.