Skip to content

Commit c445ca5

Browse files
authored
[clang][bytecode] Remove incorrect assertion (llvm#145341)
P.block() will assert that P is a block pointer, which it doesn't have to be here.
1 parent ed75e55 commit c445ca5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/AST/ByteCode/Pointer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ void Pointer::operator=(Pointer &&P) {
114114
}
115115

116116
if (Block *Pointee = PointeeStorage.BS.Pointee) {
117-
assert(P.block() != this->block());
118117
Pointee->removePointer(this);
119118
PointeeStorage.BS.Pointee = nullptr;
120119
Pointee->cleanup();

0 commit comments

Comments
 (0)