Skip to content

Commit bd676f0

Browse files
[Sema] Fix a warning
This patch fixes clang/lib/Sema/SemaStmtAttr.cpp:114:18: error: unused variable 'R' [-Werror,-Wunused-variable]
1 parent 176f7f2 commit bd676f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Sema/SemaStmtAttr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ static Attr *handleLoopHintAttr(Sema &S, Stmt *St, const ParsedAttr &A,
114114
ExprResult R = S.VerifyIntegerConstantExpression(ValueExpr, &ValueAPS);
115115
assert(!R.isInvalid() && "unroll count value must be a valid value, it's "
116116
"should be checked in Sema::CheckLoopHintExpr");
117+
(void)R;
117118
// The values of 0 and 1 block any unrolling of the loop.
118119
if (ValueAPS.isZero() || ValueAPS.isOne())
119120
SetHints(LoopHintAttr::UnrollCount, LoopHintAttr::Disable);

0 commit comments

Comments
 (0)