Author: djg Date: Mon Sep 24 10:46:02 2007 New Revision: 42261 URL: http://llvm.org/viewvc/llvm-project?rev=42261&view=rev Log: Remove an unnecessary static_cast.
Modified: llvm/trunk/include/llvm/Instructions.h Modified: llvm/trunk/include/llvm/Instructions.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=42261&r1=42260&r2=42261&view=diff ============================================================================== --- llvm/trunk/include/llvm/Instructions.h (original) +++ llvm/trunk/include/llvm/Instructions.h Mon Sep 24 10:46:02 2007 @@ -917,7 +917,7 @@ /// 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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits