diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-15 04:48:25 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-15 04:48:25 +0000 |
commit | 1c983524d05fb4b3b21a2836662f63f27774d01c (patch) | |
tree | c0204f957afc2bb5b245488d7e0c59272ab0d40a /lib/Module/IntrinsicCleaner.cpp | |
parent | cceb06eebe931a5d933a45e70519aa61b90eddc1 (diff) | |
download | klee-1c983524d05fb4b3b21a2836662f63f27774d01c.tar.gz |
Update to match new 2.8 CallInst getOperand API.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@108406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module/IntrinsicCleaner.cpp')
-rw-r--r-- | lib/Module/IntrinsicCleaner.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Module/IntrinsicCleaner.cpp b/lib/Module/IntrinsicCleaner.cpp index 540ee0d3..da0c65f8 100644 --- a/lib/Module/IntrinsicCleaner.cpp +++ b/lib/Module/IntrinsicCleaner.cpp @@ -61,8 +61,13 @@ bool IntrinsicCleanerPass::runOnBasicBlock(BasicBlock &b) { // FIXME: This is much more target dependent than just the word size, // however this works for x86-32 and x86-64. case Intrinsic::vacopy: { // (dst, src) -> *((i8**) dst) = *((i8**) src) +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 8) Value *dst = ii->getOperand(1); Value *src = ii->getOperand(2); +#else + Value *dst = ii->getArgOperand(0); + Value *src = ii->getArgOperand(1); +#endif if (WordSize == 4) { Type *i8pp = PointerType::getUnqual(PointerType::getUnqual(Type::getInt8Ty(getGlobalContext()))); |