[clang] 7e01a32 - [clang][ASTImporter] Fix unused variable warning (NFC) (#122686)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 02:35:42 PST 2025
Author: Balázs Kéri
Date: 2025-01-13T11:35:38+01:00
New Revision: 7e01a322f850e86be9eefde8ae5a30e532d22cfa
URL: https://github.com/llvm/llvm-project/commit/7e01a322f850e86be9eefde8ae5a30e532d22cfa
DIFF: https://github.com/llvm/llvm-project/commit/7e01a322f850e86be9eefde8ae5a30e532d22cfa.diff
LOG: [clang][ASTImporter] Fix unused variable warning (NFC) (#122686)
Added:
Modified:
clang/unittests/AST/ASTImporterTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp
index a0aaad6082d8cb..791248e7a394f1 100644
--- a/clang/unittests/AST/ASTImporterTest.cpp
+++ b/clang/unittests/AST/ASTImporterTest.cpp
@@ -10182,7 +10182,7 @@ TEST_P(ASTImporterOptionSpecificTestBase, ImportIntoReopenedNamespaceNoMatch1) {
struct X { int A; };
}
)";
- Decl *ToTU = getToTuDecl(ToCode, Lang_CXX11);
+ getToTuDecl(ToCode, Lang_CXX11);
const char *Code =
R"(
namespace a {
@@ -10205,7 +10205,7 @@ TEST_P(ASTImporterOptionSpecificTestBase, ImportIntoReopenedNamespaceNoMatch2) {
namespace a {
}
)";
- Decl *ToTU = getToTuDecl(ToCode, Lang_CXX11);
+ getToTuDecl(ToCode, Lang_CXX11);
const char *Code =
R"(
namespace a {
More information about the cfe-commits
mailing list