[clang] 410a134 - [clang][bytecode] Silence unused variable warning
Alexandre Ganea via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 20 11:10:44 PDT 2025
Author: Alexandre Ganea
Date: 2025-08-20T14:10:05-04:00
New Revision: 410a1341b59984de1e58ef8162a1f36db181ad0a
URL: https://github.com/llvm/llvm-project/commit/410a1341b59984de1e58ef8162a1f36db181ad0a
DIFF: https://github.com/llvm/llvm-project/commit/410a1341b59984de1e58ef8162a1f36db181ad0a.diff
LOG: [clang][bytecode] Silence unused variable warning
Added:
Modified:
clang/unittests/AST/ByteCode/Descriptor.cpp
Removed:
################################################################################
diff --git a/clang/unittests/AST/ByteCode/Descriptor.cpp b/clang/unittests/AST/ByteCode/Descriptor.cpp
index 397d67594f4b5..37e6f24f6b409 100644
--- a/clang/unittests/AST/ByteCode/Descriptor.cpp
+++ b/clang/unittests/AST/ByteCode/Descriptor.cpp
@@ -403,6 +403,7 @@ TEST(Descriptor, Primitives) {
ASSERT_FALSE(PF5.isElementPastEnd());
const Pointer &E1 = PF5.atIndex(0);
+ (void)E1;
ASSERT_TRUE(PF5.isOnePastEnd());
ASSERT_FALSE(PF5.isElementPastEnd());
}
More information about the cfe-commits
mailing list