[clang] c445ca5 - [clang][bytecode] Remove incorrect assertion (#145341)
    via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Jun 23 10:11:04 PDT 2025
    
    
  
Author: Timm Baeder
Date: 2025-06-23T19:11:01+02:00
New Revision: c445ca5412a7ee1bf7a598e860b50f29602e1981
URL: https://github.com/llvm/llvm-project/commit/c445ca5412a7ee1bf7a598e860b50f29602e1981
DIFF: https://github.com/llvm/llvm-project/commit/c445ca5412a7ee1bf7a598e860b50f29602e1981.diff
LOG: [clang][bytecode] Remove incorrect assertion (#145341)
P.block() will assert that P is a block pointer, which it doesn't have
to be here.
Added: 
    
Modified: 
    clang/lib/AST/ByteCode/Pointer.cpp
Removed: 
    
################################################################################
diff  --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp
index 50453c72c582b..f0b0384f32ac8 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();
        
    
    
More information about the cfe-commits
mailing list