diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-26 18:23:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-26 18:23:13 +0000 |
| commit | 0521c09d97b60609f4e563fbe015be82a95fccde (patch) | |
| tree | 334fc1a770d741d710882e994b4aefe7beb64a1e /llvm/lib/Transforms | |
| parent | f074cb8eea8b8de8774fd41026084fdf8248c9e8 (diff) | |
| download | bcm5719-llvm-0521c09d97b60609f4e563fbe015be82a95fccde.tar.gz bcm5719-llvm-0521c09d97b60609f4e563fbe015be82a95fccde.zip | |
fix PR6435 another bug from the MallocInst elimination work.
llvm-svn: 97231
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/GlobalOpt.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp index 6cd2c086a41..73a5504a314 100644 --- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp +++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp @@ -1297,9 +1297,7 @@ static GlobalVariable *PerformHeapAllocSRoA(GlobalVariable *GV, CallInst *CI, ConstantInt::get(IntPtrTy, TypeSize), NElems, CI->getName() + ".f" + Twine(FieldNo)); - CallInst *NCI = dyn_cast<BitCastInst>(NMI) ? - extractMallocCallFromBitCast(NMI) : cast<CallInst>(NMI); - FieldMallocs.push_back(NCI); + FieldMallocs.push_back(NMI); new StoreInst(NMI, NGV, CI); } |

