Skip to content

Commit 7939312

Browse files
committed
Fix -Wunused-variable in SemaAMDGPU.cpp in release build, NFC
1 parent e16f2f5 commit 7939312

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Sema/SemaAMDGPU.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ bool SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(unsigned BuiltinID,
3131
constexpr const int SizeIdx = 2;
3232
llvm::APSInt Size;
3333
Expr *ArgExpr = TheCall->getArg(SizeIdx);
34-
ExprResult R = SemaRef.VerifyIntegerConstantExpression(ArgExpr, &Size);
34+
[[maybe_unused]] ExprResult R =
35+
SemaRef.VerifyIntegerConstantExpression(ArgExpr, &Size);
3536
assert(!R.isInvalid());
3637
switch (Size.getSExtValue()) {
3738
case 1:

0 commit comments

Comments
 (0)