summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-12-21 23:26:13 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-12-21 23:26:13 +0000
commitaa9fe53278677f6f80a4b05476da47d06bf1e584 (patch)
tree49f4df50060f420dacb2347a38d423aa1a154df1 /llvm/lib
parent756cb33b6a6be95a3c8e9b77c34908d4f15fdefc (diff)
downloadbcm5719-llvm-aa9fe53278677f6f80a4b05476da47d06bf1e584.tar.gz
bcm5719-llvm-aa9fe53278677f6f80a4b05476da47d06bf1e584.zip
[AsmWriter] Remove redundant cast<>s. NFC.
llvm-svn: 290283
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp4
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();
OpenPOWER on IntegriCloud