commit | 2f422e06e096ae765ced5d4c67ac063c3e216424 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Tue Jul 28 21:19:26 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Tue Jul 28 21:19:26 2009 +0000 |
tree | b00e71c30dafeea2c63c1b512c0d858e621870fa | |
parent | 5c03715743f38b03b73c74b9e7c7b2faa2d28977 [diff] [blame] |
Return ConstantVector to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index a182943..5fdc497 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -850,7 +850,7 @@ if (EltTy != ValTy) { unsigned NumElts = cast<VectorType>(ValTy)->getNumElements(); SmallVector<Constant*, 16> Elts(NumElts, StoreVal); - StoreVal = Context.getConstantVector(&Elts[0], NumElts); + StoreVal = ConstantVector::get(&Elts[0], NumElts); } } new StoreInst(StoreVal, EltPtr, MI);