diff options
Diffstat (limited to 'lib/Analysis/MallocHelper.cpp')
-rw-r--r-- | lib/Analysis/MallocHelper.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Analysis/MallocHelper.cpp b/lib/Analysis/MallocHelper.cpp index 567268c679..60930d5169 100644 --- a/lib/Analysis/MallocHelper.cpp +++ b/lib/Analysis/MallocHelper.cpp @@ -69,12 +69,14 @@ static bool isBitCastOfMallocCall(const BitCastInst* BCI) { /// instruction is a bitcast of the result of a malloc call. CallInst* llvm::extractMallocCallFromBitCast(Value* I) { BitCastInst *BCI = dyn_cast<BitCastInst>(I); - return (isBitCastOfMallocCall(BCI)) ? cast<CallInst>(BCI->getOperand(0)) : NULL; + return (isBitCastOfMallocCall(BCI)) ? cast<CallInst>(BCI->getOperand(0)) + : NULL; } const CallInst* llvm::extractMallocCallFromBitCast(const Value* I) { const BitCastInst *BCI = dyn_cast<BitCastInst>(I); - return (isBitCastOfMallocCall(BCI)) ? cast<CallInst>(BCI->getOperand(0)) : NULL; + return (isBitCastOfMallocCall(BCI)) ? cast<CallInst>(BCI->getOperand(0)) + : NULL; } static bool isArrayMallocHelper(const CallInst *CI) { |