[clang] a3e62d8 - [AST] Fix a warning
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 11 00:11:48 PST 2025
Author: Kazu Hirata
Date: 2025-01-11T00:11:42-08:00
New Revision: a3e62d849f07d1e55e6d15465f4f3842ff4b3717
URL: https://github.com/llvm/llvm-project/commit/a3e62d849f07d1e55e6d15465f4f3842ff4b3717
DIFF: https://github.com/llvm/llvm-project/commit/a3e62d849f07d1e55e6d15465f4f3842ff4b3717.diff
LOG: [AST] Fix a warning
This patch fixes:
clang/unittests/AST/ASTImporterTest.cpp:3397:9: error: unused
variable 'ToTU' [-Werror,-Wunused-variable]
Added:
Modified:
clang/unittests/AST/ASTImporterTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp
index ef76ee80d7c7b1..f2bfde9bed3725 100644
--- a/clang/unittests/AST/ASTImporterTest.cpp
+++ b/clang/unittests/AST/ASTImporterTest.cpp
@@ -3394,7 +3394,6 @@ TEST_P(ASTImporterOptionSpecificTestBase, ImportBitfields) {
ASSERT_TRUE(FromF->isBitField());
ASSERT_EQ(3u, FromF->getBitWidthValue());
auto *ToField = Import(FromF, Lang_CXX03);
- auto *ToTU = ToField->getTranslationUnitDecl();
EXPECT_TRUE(ToField->isBitField());
EXPECT_EQ(3u, ToField->getBitWidthValue());
More information about the cfe-commits
mailing list