diff options
-rw-r--r-- | include/Support/Casting.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/Casting.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/Support/Casting.h b/include/Support/Casting.h index e0d50fe..ba0a99a 100644 --- a/include/Support/Casting.h +++ b/include/Support/Casting.h @@ -211,8 +211,8 @@ inline typename cast_retty<X, Y*>::ret_type cast_or_null(Y *Val) { // template <class X, class Y> -inline typename cast_retty<X, Y*>::ret_type dyn_cast(Y *Val) { - return isa<X>(Val) ? cast<X, Y*>(Val) : 0; +inline typename cast_retty<X, Y>::ret_type dyn_cast(Y Val) { + return isa<X>(Val) ? cast<X, Y>(Val) : 0; } // dyn_cast_or_null<X> - Functionally identical to dyn_cast, except that a null diff --git a/include/llvm/Support/Casting.h b/include/llvm/Support/Casting.h index e0d50fe..ba0a99a 100644 --- a/include/llvm/Support/Casting.h +++ b/include/llvm/Support/Casting.h @@ -211,8 +211,8 @@ inline typename cast_retty<X, Y*>::ret_type cast_or_null(Y *Val) { // template <class X, class Y> -inline typename cast_retty<X, Y*>::ret_type dyn_cast(Y *Val) { - return isa<X>(Val) ? cast<X, Y*>(Val) : 0; +inline typename cast_retty<X, Y>::ret_type dyn_cast(Y Val) { + return isa<X>(Val) ? cast<X, Y>(Val) : 0; } // dyn_cast_or_null<X> - Functionally identical to dyn_cast, except that a null |