From: Haojian Wu Date: Mon, 31 Oct 2022 07:53:04 +0000 (+0100) Subject: Fix unused-variable warning in release build, NFC X-Git-Tag: upstream/17.0.6~29014 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21bac595041d46d9882fb930a4467055b99ffa0a;p=platform%2Fupstream%2Fllvm.git Fix unused-variable warning in release build, NFC --- diff --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp index 54d8a74..63c58d6 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(D2); + (void)IsExpectedEntity; + (void)FD2; assert(IsExpectedEntity(FD1) && FD2 && IsExpectedEntity(FD2) && "use non-instantiated function declaration for constraints partial " "ordering");