diff options
Diffstat (limited to 'include/llvm/User.h')
-rw-r--r-- | include/llvm/User.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h index cdd9b53..0482189 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -96,7 +96,7 @@ template<> struct simplify_type<User::op_iterator> { typedef Value* SimpleType; static SimpleType getSimplifiedValue(const User::op_iterator &Val) { - return (SimpleType)Val->get(); + return static_cast<SimpleType>(Val->get()); } }; template<> struct simplify_type<const User::op_iterator> @@ -106,7 +106,7 @@ template<> struct simplify_type<User::const_op_iterator> { typedef Value* SimpleType; static SimpleType getSimplifiedValue(const User::const_op_iterator &Val) { - return (SimpleType)Val->get(); + return static_cast<SimpleType>(Val->get()); } }; template<> struct simplify_type<const User::const_op_iterator> |