commit | a9b2313c13a1bc8cbae751da03a9049ecaf0f918 | [log] [tgz] |
---|---|---|
author | Gabor Greif <ggreif@gmail.com> | Tue Apr 20 13:13:04 2010 +0000 |
committer | Gabor Greif <ggreif@gmail.com> | Tue Apr 20 13:13:04 2010 +0000 |
tree | 895ed8b93f57ef75218817252e859225e970c4b8 | |
parent | eb1f4b1899fdbb95807c3dcaa5f03f5129c4a156 [diff] [blame] |
use abstract accessors to CallInst git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101899 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 27c954b..5ca9ce3 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -1316,7 +1316,7 @@ } // Process each element of the aggregate. - Value *TheFn = MI->getOperand(0); + Value *TheFn = MI->getCalledValue(); const Type *BytePtrTy = MI->getRawDest()->getType(); bool SROADest = MI->getRawDest() == Inst;