diff --git a/lib/Optimizer/Transforms/LiftArrayAlloc.cpp b/lib/Optimizer/Transforms/LiftArrayAlloc.cpp index a5896e201c..ba4a87c29e 100644 --- a/lib/Optimizer/Transforms/LiftArrayAlloc.cpp +++ b/lib/Optimizer/Transforms/LiftArrayAlloc.cpp @@ -147,7 +147,7 @@ class AllocaPattern : public OpRewritePattern { rewriter.create(loc, arrTy, valuesAttr); } - std::vector toErase; + SmallVector toErase; // Rewalk all the uses of alloc, u, which must be cc.cast or cc.compute_ptr. // For each,u, remove a store and replace a load with a cc.extract_value.