[llvm] r235159 - Narrow down the type of CallInst::getFunctionType to a FunctionType
David Blaikie
dblaikie at gmail.com
Thu Apr 16 23:40:11 PDT 2015
Author: dblaikie
Date: Fri Apr 17 01:40:11 2015
New Revision: 235159
URL: http://llvm.org/viewvc/llvm-project?rev=235159&view=rev
Log:
Narrow down the type of CallInst::getFunctionType to a FunctionType
Modified:
llvm/trunk/include/llvm/IR/Instructions.h
Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=235159&r1=235158&r2=235159&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Fri Apr 17 01:40:11 2015
@@ -1337,8 +1337,9 @@ public:
~CallInst() override;
- Type *getFunctionType() const {
- return cast<PointerType>(getCalledValue()->getType())->getElementType();
+ FunctionType *getFunctionType() const {
+ return cast<FunctionType>(
+ cast<PointerType>(getCalledValue()->getType())->getElementType());
}
// Note that 'musttail' implies 'tail'.
More information about the llvm-commits
mailing list