diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-06-29 16:17:26 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-06-29 16:17:26 +0000 |
commit | cfbb7d43299a2ce94b83ced4a1cbcfe69e387b52 (patch) | |
tree | 9fe60da436659dd7cd2a9c5096280848c46cda16 /lib/VMCore | |
parent | 009105c3938466e93b4cbb38b44d83acfc98d817 (diff) | |
download | external_llvm-cfbb7d43299a2ce94b83ced4a1cbcfe69e387b52.zip external_llvm-cfbb7d43299a2ce94b83ced4a1cbcfe69e387b52.tar.gz external_llvm-cfbb7d43299a2ce94b83ced4a1cbcfe69e387b52.tar.bz2 |
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/AutoUpgrade.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/VMCore/AutoUpgrade.cpp b/lib/VMCore/AutoUpgrade.cpp index 64c456c..dc39024 100644 --- a/lib/VMCore/AutoUpgrade.cpp +++ b/lib/VMCore/AutoUpgrade.cpp @@ -429,9 +429,9 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { // Remove upgraded multiply. CI->eraseFromParent(); } else if (F->getName() == "llvm.x86.ssse3.palign.r") { - Value *Op1 = CI->getOperand(1); - Value *Op2 = CI->getOperand(2); - Value *Op3 = CI->getOperand(3); + Value *Op1 = CI->getArgOperand(0); + Value *Op2 = CI->getArgOperand(1); + Value *Op3 = CI->getArgOperand(2); unsigned shiftVal = cast<ConstantInt>(Op3)->getZExtValue(); Value *Rep; IRBuilder<> Builder(C); @@ -485,9 +485,9 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { CI->eraseFromParent(); } else if (F->getName() == "llvm.x86.ssse3.palign.r.128") { - Value *Op1 = CI->getOperand(1); - Value *Op2 = CI->getOperand(2); - Value *Op3 = CI->getOperand(3); + Value *Op1 = CI->getArgOperand(0); + Value *Op2 = CI->getArgOperand(1); + Value *Op3 = CI->getArgOperand(2); unsigned shiftVal = cast<ConstantInt>(Op3)->getZExtValue(); Value *Rep; IRBuilder<> Builder(C); |