aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/InterpBuiltin.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-29 15:48:14 -0700
committerKazu Hirata <kazu@google.com>2025-05-29 15:48:14 -0700
commit882e7331c4ba5582d3881b7bb93c0952e601336b (patch)
tree6afe5e9881a992345134a3fe5191a1f9649e6770 /clang/lib/AST/ByteCode/InterpBuiltin.cpp
parent8229f72b7b357ab9cd2b0a7a47356b16a47269ce (diff)
downloadllvm-882e7331c4ba5582d3881b7bb93c0952e601336b.zip
llvm-882e7331c4ba5582d3881b7bb93c0952e601336b.tar.gz
llvm-882e7331c4ba5582d3881b7bb93c0952e601336b.tar.bz2
[AST] Fix a warning
This patch fixes: clang/lib/AST/ByteCode/InterpBuiltin.cpp:767:12: error: unused variable 'PtrT' [-Werror,-Wunused-variable]
Diffstat (limited to 'clang/lib/AST/ByteCode/InterpBuiltin.cpp')
-rw-r--r--clang/lib/AST/ByteCode/InterpBuiltin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp
index 3b47d86..bfad4e7 100644
--- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp
+++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp
@@ -768,6 +768,7 @@ static bool interp__builtin_addressof(InterpState &S, CodePtr OpPC,
S.getContext().classify(Call->getArg(0)).value_or(PT_Ptr);
assert(PtrT == PT_Ptr &&
"Unsupported pointer type passed to __builtin_addressof()");
+ (void)PtrT;
return true;
}