mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Fit code within 80 columns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7893ec6494
commit
399e45b459
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user