Author: silvas
Date: Fri Jan 16 15:44:26 2015
New Revision: 226328

URL: http://llvm.org/viewvc/llvm-project?rev=226328&view=rev
Log:
Fix some copypasta typos in asserts.

Fixes PR22236

Patch by Nicolas Brunie! <[email protected]>

Modified:
    cfe/trunk/lib/AST/ASTContext.cpp

Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=226328&r1=226327&r2=226328&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Fri Jan 16 15:44:26 2015
@@ -7545,7 +7545,7 @@ static QualType DecodeTypeFromStr(const
       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
     break;
   case 'h':
     assert(HowLong == 0 && !Signed && !Unsigned &&
-           "Bad modifiers used with 'f'!");
+           "Bad modifiers used with 'h'!");
     Type = Context.HalfTy;
     break;
   case 'f':


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to