Skip to content

Commit 1d43ec8

Browse files
committed
[clang][Interp][NFC] Remove unnecessary if condition
This is already in a if(isBlockPointer()) block.
1 parent 6479e3c commit 1d43ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/Pointer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ void Pointer::print(llvm::raw_ostream &OS) const {
191191
else
192192
OS << Offset << ", ";
193193

194-
if (isBlockPointer() && PointeeStorage.BS.Pointee)
194+
if (PointeeStorage.BS.Pointee)
195195
OS << PointeeStorage.BS.Pointee->getSize();
196196
else
197197
OS << "nullptr";

0 commit comments

Comments
 (0)