aboutsummaryrefslogtreecommitdiffstats
path: root/include/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
commit11a7dbf12715e66bcf427dc1694aa57455335dfb (patch)
treebd303ec5efdeb8289201c995c0a7636bc0517f0f /include/llvm
parent9b4baf169299141692e07adedeff691b71e95fda (diff)
downloadexternal_llvm-11a7dbf12715e66bcf427dc1694aa57455335dfb.zip
external_llvm-11a7dbf12715e66bcf427dc1694aa57455335dfb.tar.gz
external_llvm-11a7dbf12715e66bcf427dc1694aa57455335dfb.tar.bz2
Remove an unnecessary static_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 98df15e..ec03030 100644
--- 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