Skip to content

Commit 882e733

Browse files
[AST] Fix a warning
This patch fixes: clang/lib/AST/ByteCode/InterpBuiltin.cpp:767:12: error: unused variable 'PtrT' [-Werror,-Wunused-variable]
1 parent 8229f72 commit 882e733

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ static bool interp__builtin_addressof(InterpState &S, CodePtr OpPC,
768768
S.getContext().classify(Call->getArg(0)).value_or(PT_Ptr);
769769
assert(PtrT == PT_Ptr &&
770770
"Unsupported pointer type passed to __builtin_addressof()");
771+
(void)PtrT;
771772
return true;
772773
}
773774

0 commit comments

Comments
 (0)