summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-09-24 15:46:02 +0000
committerDan Gohman <gohman@apple.com>2007-09-24 15:46:02 +0000
commit043689cf7d25f2fd99d743a574782ead1b0cba5e (patch)
tree19e9adf6f4a8b430176afc3d4e4199dd687a44ed /llvm
parent962942f7a4d9a2624f9331b8c619a027cdc3cf13 (diff)
downloadbcm5719-llvm-043689cf7d25f2fd99d743a574782ead1b0cba5e.tar.gz
bcm5719-llvm-043689cf7d25f2fd99d743a574782ead1b0cba5e.zip
Remove an unnecessary static_cast.
llvm-svn: 42261
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h
index 98df15e4e94..ec030308652 100644
--- a/llvm/include/llvm/Instructions.h
+++ b/llvm/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
OpenPOWER on IntegriCloud