diff options
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index ab58c41..1668d6b 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -1570,7 +1570,7 @@ static bool TryToOptimizeStoreOfMallocToGlobal(GlobalVariable *GV, if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) CI = cast<CallInst>(BCI->getOperand(0)); else - CI = cast<CallInst>(Malloc); + CI = cast<CallInst>(Malloc); } GVI = PerformHeapAllocSRoA(GV, CI, getMallocArraySize(CI, TD, true), TD); |