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

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


hokein added inline comments.


================
Comment at: clang/lib/Sema/SemaConcept.cpp:1348
                                   bool &Result) {
   if (const auto *FD1 = dyn_cast<FunctionDecl>(D1)) {
     auto IsExpectedEntity = [](const FunctionDecl *FD) {
----------------
cor3ntin wrote:
> 
we still need the FD1 as there is a `IsExpectedEntity(FD1)` call in the assert on L1358.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140711/new/

https://reviews.llvm.org/D140711



More information about the cfe-commits mailing list