From 11a7dbf12715e66bcf427dc1694aa57455335dfb Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 24 Sep 2007 15:46:02 +0000 Subject: [PATCH] Remove an unnecessary static_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42261 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instructions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 98df15e4e94..ec030308652 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(dyn_cast(getOperand(0))); + return dyn_cast(getOperand(0)); } /// getCalledValue - Get a pointer to the function that is invoked by this