WebKit Bugzilla
Attachment 368638 Details for
Bug 197448
: [WHLSL] Cannot assign through pointers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
WIP
file.txt (text/plain), 1.36 KB, created by
Myles C. Maxfield
on 2019-04-30 18:08:54 PDT
(
hide
)
Description:
WIP
Filename:
MIME Type:
Creator:
Myles C. Maxfield
Created:
2019-04-30 18:08:54 PDT
Size:
1.36 KB
patch
obsolete
>diff --git a/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp b/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp >index 2fc14658616..83997349651 100644 >--- a/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp >+++ b/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp >@@ -486,12 +486,20 @@ void FunctionDefinitionWriter::visit(AST::VariableDeclaration& variableDeclarati > > void FunctionDefinitionWriter::visit(AST::AssignmentExpression& assignmentExpression) > { >+ if (is<AST::DereferenceExpression>(assignmentExpression.left())) { >+ checkErrorAndVisit(downcast<AST::DereferenceExpression>(assignmentExpression.left()).pointer()); >+ auto leftName = m_stack.takeLast(); >+ checkErrorAndVisit(assignmentExpression.right()); >+ auto rightName = m_stack.takeLast(); >+ m_stringBuilder.append(makeString('*', leftName, " = ", rightName, ";\n")); >+ m_stack.append(rightName); >+ } > checkErrorAndVisit(assignmentExpression.left()); > auto leftName = m_stack.takeLast(); > checkErrorAndVisit(assignmentExpression.right()); > auto rightName = m_stack.takeLast(); > m_stringBuilder.append(makeString(leftName, " = ", rightName, ";\n")); >- m_stack.append(leftName); >+ m_stack.append(rightName); > } > > void FunctionDefinitionWriter::visit(AST::CallExpression& callExpression)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197448
:
368638