Skip to content

Commit

Permalink
Minor debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dikang committed Dec 14, 2023
1 parent 90b9233 commit 3bf27e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/CGExprScalar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,11 @@ class ScalarExprEmitter
Value *VisitSYCLUniqueStableNameExpr(SYCLUniqueStableNameExpr *E);

Value *VisitOpaqueValueExpr(OpaqueValueExpr *E) {
if (E->isGLValue())
if (E->isGLValue()) {
CheckVote(E, 1);
return EmitLoadOfLValue(CGF.getOrCreateOpaqueLValueMapping(E),
E->getExprLoc());

}
// Otherwise, assume the mapping is the scalar directly.
return CGF.getOrCreateOpaqueRValueMapping(E).getScalarVal();
}
Expand Down

0 comments on commit 3bf27e1

Please sign in to comment.