[clang] 21bac59 - Fix unused-variable warning in release build, NFC
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 31 00:53:43 PDT 2022
Author: Haojian Wu
Date: 2022-10-31T08:53:30+01:00
New Revision: 21bac595041d46d9882fb930a4467055b99ffa0a
URL: https://github.com/llvm/llvm-project/commit/21bac595041d46d9882fb930a4467055b99ffa0a
DIFF: https://github.com/llvm/llvm-project/commit/21bac595041d46d9882fb930a4467055b99ffa0a.diff
LOG: Fix unused-variable warning in release build, NFC
Added:
Modified:
clang/lib/Sema/SemaConcept.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp
index 54d8a746fa247..63c58d64c472b 100644
--- a/clang/lib/Sema/SemaConcept.cpp
+++ b/clang/lib/Sema/SemaConcept.cpp
@@ -1307,6 +1307,8 @@ bool Sema::IsAtLeastAsConstrained(NamedDecl *D1,
Kind == FunctionDecl::TK_FunctionTemplate;
};
const auto *FD2 = dyn_cast<FunctionDecl>(D2);
+ (void)IsExpectedEntity;
+ (void)FD2;
assert(IsExpectedEntity(FD1) && FD2 && IsExpectedEntity(FD2) &&
"use non-instantiated function declaration for constraints partial "
"ordering");
More information about the cfe-commits
mailing list