diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 5c104f6ce0c..83edaaddc84 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -3003,7 +3003,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } Operand = CI->getCalledValue(); - FunctionType *FTy = cast<FunctionType>(CI->getFunctionType()); + FunctionType *FTy = CI->getFunctionType(); Type *RetTy = FTy->getReturnType(); const AttributeSet &PAL = CI->getAttributes(); @@ -3040,7 +3040,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } else if (const InvokeInst *II = dyn_cast<InvokeInst>(&I)) { Operand = II->getCalledValue(); - FunctionType *FTy = cast<FunctionType>(II->getFunctionType()); + FunctionType *FTy = II->getFunctionType(); Type *RetTy = FTy->getReturnType(); const AttributeSet &PAL = II->getAttributes(); |

