From 7b7166f1a20fe64a9c04a30f6e9335ef0a556d70 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 21 Jun 2022 20:52:07 +0200 Subject: [PATCH] Fix an unused-variable warning in release build, NFC. --- clang/lib/Sema/SemaInit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index f4cd45a..59ddb38 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(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" -- 2.7.4