[llvm] r290283 - [AsmWriter] Remove redundant cast<>s. NFC.
Ahmed Bougacha via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 15:26:13 PST 2016
Author: ab
Date: Wed Dec 21 17:26:13 2016
New Revision: 290283
URL: http://llvm.org/viewvc/llvm-project?rev=290283&view=rev
Log:
[AsmWriter] Remove redundant cast<>s. NFC.
Modified:
llvm/trunk/lib/IR/AsmWriter.cpp
Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=290283&r1=290282&r2=290283&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Wed Dec 21 17:26:13 2016
@@ -3003,7 +3003,7 @@ void AssemblyWriter::printInstruction(co
}
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(co
} 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();
More information about the llvm-commits
mailing list