[clang] a17fc7f - Fix unused-variable warning, NFC.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 25 06:25:34 PDT 2022
Author: Haojian Wu
Date: 2022-05-25T15:25:03+02:00
New Revision: a17fc7fd865096f4be6b8b4a7e6e0834aae6c048
URL: https://github.com/llvm/llvm-project/commit/a17fc7fd865096f4be6b8b4a7e6e0834aae6c048
DIFF: https://github.com/llvm/llvm-project/commit/a17fc7fd865096f4be6b8b4a7e6e0834aae6c048.diff
LOG: Fix unused-variable warning, NFC.
Added:
Modified:
clang/tools/libclang/CIndex.cpp
Removed:
################################################################################
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index cf31524bbc43..7bc945379329 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -1511,8 +1511,7 @@ bool CursorVisitor::VisitTemplateParameters(
}
if (const auto *E = Params->getRequiresClause()) {
- if (Visit(MakeCXCursor(Params->getRequiresClause(), nullptr, TU,
- RegionOfInterest)))
+ if (Visit(MakeCXCursor(E, nullptr, TU, RegionOfInterest)))
return true;
}
More information about the cfe-commits
mailing list