We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30817dc commit cbcd5f3Copy full SHA for cbcd5f3
flang/lib/Semantics/check-cuda.cpp
@@ -387,9 +387,8 @@ template <bool IsCUFKernelDo> class DeviceContextChecker {
387
Check(x.value());
388
},
389
[&](const common::Indirection<parser::AssignmentStmt> &x) {
390
- const evaluate::Assignment *assign{
391
- semantics::GetAssignment(x.value())};
392
- if (assign) {
+ if (const evaluate::Assignment *
+ assign{semantics::GetAssignment(x.value())}) {
393
ErrorIfHostSymbol(assign->lhs, source);
394
ErrorIfHostSymbol(assign->rhs, source);
395
}
0 commit comments