llvm.org GIT mirror llvm / 88d942d
Spell `incompatible' correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8163 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 17 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
183183 //
184184 template
185185 inline typename cast_retty::ret_type cast(const Y &Val) {
186 assert(isa(Val) && "cast() argument of uncompatible type!");
186 assert(isa(Val) && "cast() argument of incompatible type!");
187187 return cast_convert_val
188188 typename simplify_type::SimpleType>::doit(Val);
189189 }
194194 template
195195 inline typename cast_retty::ret_type cast_or_null(Y *Val) {
196196 if (Val == 0) return 0;
197 assert(isa(Val) && "cast_or_null() argument of uncompatible type!");
197 assert(isa(Val) && "cast_or_null() argument of incompatible type!");
198198 return cast(Val);
199199 }
200200
183183 //
184184 template
185185 inline typename cast_retty::ret_type cast(const Y &Val) {
186 assert(isa(Val) && "cast() argument of uncompatible type!");
186 assert(isa(Val) && "cast() argument of incompatible type!");
187187 return cast_convert_val
188188 typename simplify_type::SimpleType>::doit(Val);
189189 }
194194 template
195195 inline typename cast_retty::ret_type cast_or_null(Y *Val) {
196196 if (Val == 0) return 0;
197 assert(isa(Val) && "cast_or_null() argument of uncompatible type!");
197 assert(isa(Val) && "cast_or_null() argument of incompatible type!");
198198 return cast(Val);
199199 }
200200