Fix some copypasta typos in asserts.
authorSean Silva <chisophugis@gmail.com>
Fri, 16 Jan 2015 21:44:26 +0000 (21:44 +0000)
committerSean Silva <chisophugis@gmail.com>
Fri, 16 Jan 2015 21:44:26 +0000 (21:44 +0000)
Fixes PR22236

Patch by Nicolas Brunie! <nicolas.brunie@kalray.eu>

llvm-svn: 226328

clang/lib/AST/ASTContext.cpp

index 88f6bfb..7f17fe8 100644 (file)
@@ -7545,7 +7545,7 @@ static QualType DecodeTypeFromStr(const char *&Str, const ASTContext &Context,
       break;
     case 'U':
       assert(!Signed && "Can't use both 'S' and 'U' modifiers!");
-      assert(!Unsigned && "Can't use 'S' modifier multiple times!");
+      assert(!Unsigned && "Can't use 'U' modifier multiple times!");
       Unsigned = true;
       break;
     case 'L':
@@ -7580,7 +7580,7 @@ static QualType DecodeTypeFromStr(const char *&Str, const ASTContext &Context,
     break;
   case 'h':
     assert(HowLong == 0 && !Signed && !Unsigned &&
-           "Bad modifiers used with 'f'!");
+           "Bad modifiers used with 'h'!");
     Type = Context.HalfTy;
     break;
   case 'f':