[compiler-rt] [scudo] Clean up string handling (PR #86364)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 14:45:40 PDT 2024


================
@@ -35,7 +35,9 @@ template <typename T> class VectorNoCtor {
     DCHECK_LE(Size, capacity());
     if (Size == capacity()) {
       const uptr NewCapacity = roundUpPowerOfTwo(Size + 1);
-      reallocate(NewCapacity);
+      if (!reallocate(NewCapacity)) {
+        return;
+      }
----------------
ChiaHungDuan wrote:

Sure, I'm fine with a follow-up of doing that. It does better to separate the further change. 

https://github.com/llvm/llvm-project/pull/86364


More information about the llvm-commits mailing list