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:
9b4baf1
)
Remove an unnecessary static_cast.
author
Dan Gohman
<gohman@apple.com>
Mon, 24 Sep 2007 15:46:02 +0000
(15:46 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 24 Sep 2007 15:46:02 +0000
(15:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42261
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Instructions.h
patch
|
blob
|
history
diff --git
a/include/llvm/Instructions.h
b/include/llvm/Instructions.h
index 98df15e4e9408e6f8b6cef12d592bb6e5bfd371c..ec03030865261985852abdece65ced5fd18d5619 100644
(file)
--- a/
include/llvm/Instructions.h
+++ b/
include/llvm/Instructions.h
@@
-917,7
+917,7
@@
public:
/// if it is a direct call. If it is a call through a function pointer,
/// return null.
Function *getCalledFunction() const {
- return
static_cast<Function*>(dyn_cast<Function>(getOperand(0)
));
+ return
dyn_cast<Function>(getOperand(0
));
}
/// getCalledValue - Get a pointer to the function that is invoked by this