diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-06-23 19:11:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-23 19:11:01 +0200 |
commit | c445ca5412a7ee1bf7a598e860b50f29602e1981 (patch) | |
tree | 5c4cff3c0de79cbfd347e5fdfb6b678567944820 /clang/lib/AST/ByteCode/Pointer.cpp | |
parent | ed75e55a70aaf898c35ad4ca0f5936bf72e4fc11 (diff) | |
download | llvm-c445ca5412a7ee1bf7a598e860b50f29602e1981.zip llvm-c445ca5412a7ee1bf7a598e860b50f29602e1981.tar.gz llvm-c445ca5412a7ee1bf7a598e860b50f29602e1981.tar.bz2 |
[clang][bytecode] Remove incorrect assertion (#145341)
P.block() will assert that P is a block pointer, which it doesn't have
to be here.
Diffstat (limited to 'clang/lib/AST/ByteCode/Pointer.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Pointer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp index 50453c7..f0b0384 100644 --- a/clang/lib/AST/ByteCode/Pointer.cpp +++ b/clang/lib/AST/ByteCode/Pointer.cpp @@ -114,7 +114,6 @@ void Pointer::operator=(Pointer &&P) { } if (Block *Pointee = PointeeStorage.BS.Pointee) { - assert(P.block() != this->block()); Pointee->removePointer(this); PointeeStorage.BS.Pointee = nullptr; Pointee->cleanup(); |