[clang] 7b7166f - Fix an unused-variable warning in release build, NFC.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 21 11:53:29 PDT 2022
Author: Haojian Wu
Date: 2022-06-21T20:52:07+02:00
New Revision: 7b7166f1a20fe64a9c04a30f6e9335ef0a556d70
URL: https://github.com/llvm/llvm-project/commit/7b7166f1a20fe64a9c04a30f6e9335ef0a556d70
DIFF: https://github.com/llvm/llvm-project/commit/7b7166f1a20fe64a9c04a30f6e9335ef0a556d70.diff
LOG: Fix an unused-variable warning in release build, NFC.
Added:
Modified:
clang/lib/Sema/SemaInit.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index f4cd45ad6c92..59ddb38b670d 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -8164,6 +8164,7 @@ ExprResult InitializationSequence::Perform(Sema &S,
// use the syntax of a C++-like constructor.
bool IsHLSLVectorInit = S.getLangOpts().HLSL && DestType->isExtVectorType() &&
isa<InitListExpr>(Args[0]);
+ (void)IsHLSLVectorInit;
// For initialization steps that start with a single initializer,
// grab the only argument out the Args and place it into the "current"
More information about the cfe-commits
mailing list