[clang] a6a42df - [Sema] Fix -Wunused-variable in CreateBuiltinMatrixSubscriptExpr (NFC).
Florian Hahn via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 02:49:33 PDT 2020
Author: Florian Hahn
Date: 2020-06-02T10:45:30+01:00
New Revision: a6a42df506ca93df69725f732c396050060f026f
URL: https://github.com/llvm/llvm-project/commit/a6a42df506ca93df69725f732c396050060f026f
DIFF: https://github.com/llvm/llvm-project/commit/a6a42df506ca93df69725f732c396050060f026f.diff
LOG: [Sema] Fix -Wunused-variable in CreateBuiltinMatrixSubscriptExpr (NFC).
Added:
Modified:
clang/lib/Sema/SemaExpr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index e177c9d4adec..2221f98b943a 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -4737,6 +4737,7 @@ ExprResult Sema::CreateBuiltinMatrixSubscriptExpr(Expr *Base, Expr *RowIdx,
bool ConversionOk = tryConvertToTy(*this, Context.getSizeType(), &ConvExpr);
assert(ConversionOk &&
"should be able to convert any integer type to size type");
+ (void)ConversionOk;
return ConvExpr.get();
};
More information about the cfe-commits
mailing list