[clang] d0a98ef - [clang] Fix unused variable warning in SemaConcept.cpp

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 12 03:56:57 PST 2023


Author: Victor Komarov
Date: 2023-01-12T12:55:34+01:00
New Revision: d0a98efb6819182138fab2e4028ab77d30f8b278

URL: https://github.com/llvm/llvm-project/commit/d0a98efb6819182138fab2e4028ab77d30f8b278
DIFF: https://github.com/llvm/llvm-project/commit/d0a98efb6819182138fab2e4028ab77d30f8b278.diff

LOG: [clang] Fix unused variable warning in SemaConcept.cpp

Issue is described here: https://github.com/llvm/llvm-project/issues/59696

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D140711

Added: 
    

Modified: 
    clang/lib/Sema/SemaConcept.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp
index af920693859e..3ab93827cd31 100644
--- a/clang/lib/Sema/SemaConcept.cpp
+++ b/clang/lib/Sema/SemaConcept.cpp
@@ -1354,6 +1354,7 @@ bool Sema::IsAtLeastAsConstrained(NamedDecl *D1,
     };
     const auto *FD2 = dyn_cast<FunctionDecl>(D2);
     (void)IsExpectedEntity;
+    (void)FD1;
     (void)FD2;
     assert(IsExpectedEntity(FD1) && FD2 && IsExpectedEntity(FD2) &&
            "use non-instantiated function declaration for constraints partial "


        


More information about the cfe-commits mailing list