[llvm-commits] [llvm] r81459 - /llvm/trunk/lib/Analysis/MallocHelper.cpp
Victor Hernandez
vhernandez at apple.com
Thu Sep 10 13:18:58 PDT 2009
Author: hernande
Date: Thu Sep 10 15:18:57 2009
New Revision: 81459
URL: http://llvm.org/viewvc/llvm-project?rev=81459&view=rev
Log:
Fit code within 80 columns
Modified:
llvm/trunk/lib/Analysis/MallocHelper.cpp
Modified: llvm/trunk/lib/Analysis/MallocHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MallocHelper.cpp?rev=81459&r1=81458&r2=81459&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MallocHelper.cpp (original)
+++ llvm/trunk/lib/Analysis/MallocHelper.cpp Thu Sep 10 15:18:57 2009
@@ -69,12 +69,14 @@
/// 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) {
More information about the llvm-commits
mailing list