projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a10888
)
Narrow down the type of CallInst::getFunctionType to a FunctionType
author
David Blaikie
<dblaikie@gmail.com>
Fri, 17 Apr 2015 06:40:11 +0000
(06:40 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Fri, 17 Apr 2015 06:40:11 +0000
(06:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235159
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/IR/Instructions.h
patch
|
blob
|
history
diff --git
a/include/llvm/IR/Instructions.h
b/include/llvm/IR/Instructions.h
index 1f2ca301d24c2a71c478caca71346aa0626da7fc..ddb441b6e5d4f3ab4092e307c228e5c17c1fa0bb 100644
(file)
--- a/
include/llvm/IR/Instructions.h
+++ b/
include/llvm/IR/Instructions.h
@@
-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'.