Skip to content

Commit

Permalink
Spell `incompatible' correctly.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8163 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
mbrukman committed Aug 27, 2003
1 parent 2917ea1 commit 88d942d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/Support/Casting.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ template<class To, class FromTy> struct cast_convert_val<To,FromTy,FromTy> {
//
template <class X, class Y>
inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
assert(isa<X>(Val) && "cast<Ty>() argument of uncompatible type!");
assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
return cast_convert_val<X, Y,
typename simplify_type<Y>::SimpleType>::doit(Val);
}
Expand All @@ -195,7 +195,7 @@ inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
template <class X, class Y>
inline typename cast_retty<X, Y*>::ret_type cast_or_null(Y *Val) {
if (Val == 0) return 0;
assert(isa<X>(Val) && "cast_or_null<Ty>() argument of uncompatible type!");
assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
return cast<X>(Val);
}

Expand Down
4 changes: 2 additions & 2 deletions include/llvm/Support/Casting.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ template<class To, class FromTy> struct cast_convert_val<To,FromTy,FromTy> {
//
template <class X, class Y>
inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
assert(isa<X>(Val) && "cast<Ty>() argument of uncompatible type!");
assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
return cast_convert_val<X, Y,
typename simplify_type<Y>::SimpleType>::doit(Val);
}
Expand All @@ -195,7 +195,7 @@ inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
template <class X, class Y>
inline typename cast_retty<X, Y*>::ret_type cast_or_null(Y *Val) {
if (Val == 0) return 0;
assert(isa<X>(Val) && "cast_or_null<Ty>() argument of uncompatible type!");
assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
return cast<X>(Val);
}

Expand Down

0 comments on commit 88d942d

Please sign in to comment.