]> granicus.if.org Git - clang/commitdiff
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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226328 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 88f6bfba024124bbd6090b2deaf759b580d65c16..7f17fe8b8cc2dc98d6e18ac81b2c0b79951e31a0 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':