Skip to content

Commit ef29e22

Browse files
authored
[NFC] Add a variable use to silence 'set but not used' warning (#14217)
ScopeStartCI is only used in an assert so a warning is given in release builds. Add a reference so -Werror builds can succeed.
1 parent ab77ba8 commit ef29e22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/SYCLLowerIR/ESIMD/LowerESIMDSlmReservation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ class ScopedCallGraph {
360360
continue;
361361
}
362362
if (CallInst *ScopeStartCI = IsScopeEnd(&I)) {
363+
(void)ScopeStartCI;
363364
ScopeMet = true;
364365
// Scope end marker encountered - verify all enclosed scopes have
365366
// ended and truncate current scope path to the enclosing node.

0 commit comments

Comments
 (0)