diff options
| -rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 3c4e6bc6963..39a91dfc29d 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -1004,6 +1004,7 @@ bool llvm::GetConstantStringInfo(Value *V, std::string &Str) {    // Traverse the constant array from StartIdx (derived above) which is    // the place the GEP refers to in the array. +  Str.reserve(NumElts);    for (unsigned i = StartIdx; i < NumElts; ++i) {      Constant *Elt = Array->getOperand(i);      ConstantInt *CI = dyn_cast<ConstantInt>(Elt);  | 

