mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
s/MethodType/FunctionType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -264,10 +264,8 @@ bool UltraSparcRegInfo::isVarArgCall(const MachineInstr *CallMI) const {
|
||||
const MachineOperand & calleeOp = CallMI->getOperand(0);
|
||||
Value *calleeVal = calleeOp.getVRegValue();
|
||||
|
||||
PointerType *PT = cast<PointerType> (calleeVal->getType());
|
||||
MethodType *MT = cast<MethodType>(PT->getElementType());
|
||||
|
||||
return MT->isVarArg();
|
||||
PointerType *PT = cast<PointerType>(calleeVal->getType());
|
||||
return cast<FunctionType>(PT->getElementType())->isVarArg();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user