summaryrefslogtreecommitdiff
path: root/lib/VMCore/AutoUpgrade.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-14 18:15:46 +0000
committerChris Lattner <sabre@nondot.org>2011-02-14 18:15:46 +0000
commit75831904220042260c4faece8507a2807acba47f (patch)
tree69d0fd5dfad613c79932f7f5c53e2e61a2616cf3 /lib/VMCore/AutoUpgrade.cpp
parent50a47e93cebdf22dacb95a6e75a5b803fc4c3e04 (diff)
downloadllvm-75831904220042260c4faece8507a2807acba47f.tar.gz
llvm-75831904220042260c4faece8507a2807acba47f.tar.bz2
llvm-75831904220042260c4faece8507a2807acba47f.tar.xz
revert my ConstantVector patch, it seems to have made the llvm-gcc
builders unhappy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AutoUpgrade.cpp')
-rw-r--r--lib/VMCore/AutoUpgrade.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/AutoUpgrade.cpp b/lib/VMCore/AutoUpgrade.cpp
index b323540356..64b0b51828 100644
--- a/lib/VMCore/AutoUpgrade.cpp
+++ b/lib/VMCore/AutoUpgrade.cpp
@@ -859,7 +859,7 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
for (unsigned i = 0; i != 8; ++i)
Indices.push_back(ConstantInt::get(IntTy, shiftVal + i));
- Value *SV = ConstantVector::get(Indices);
+ Value *SV = ConstantVector::get(Indices.begin(), Indices.size());
Rep = Builder.CreateShuffleVector(Op2, Op1, SV, "palignr");
Rep = Builder.CreateBitCast(Rep, F->getReturnType());
}
@@ -915,7 +915,7 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
for (unsigned i = 0; i != 16; ++i)
Indices.push_back(ConstantInt::get(IntTy, shiftVal + i));
- Value *SV = ConstantVector::get(Indices);
+ Value *SV = ConstantVector::get(Indices.begin(), Indices.size());
Rep = Builder.CreateShuffleVector(Op2, Op1, SV, "palignr");
Rep = Builder.CreateBitCast(Rep, F->getReturnType());
}