Author: Timm Baeder
Date: 2025-08-26T12:46:30+02:00
New Revision: aaae6ac6dec1fab6ab88c332002d7446d8e3f0ab

URL: 
https://github.com/llvm/llvm-project/commit/aaae6ac6dec1fab6ab88c332002d7446d8e3f0ab
DIFF: 
https://github.com/llvm/llvm-project/commit/aaae6ac6dec1fab6ab88c332002d7446d8e3f0ab.diff

LOG: [clang][bytecode][NFC] Use Pointer::initializeAllElements() in Program 
(#155391)

We just initialized the entire string, so use this function instead.

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Program.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/Program.cpp 
b/clang/lib/AST/ByteCode/Program.cpp
index 139cae7afc87e..d9403c25d598b 100644
--- a/clang/lib/AST/ByteCode/Program.cpp
+++ b/clang/lib/AST/ByteCode/Program.cpp
@@ -101,7 +101,7 @@ unsigned Program::createGlobalString(const StringLiteral 
*S, const Expr *Base) {
       }
     }
   }
-  Ptr.initialize();
+  Ptr.initializeAllElements();
 
   return GlobalIndex;
 }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to