r226328 - Fix some copypasta typos in asserts.
Sean Silva
chisophugis at gmail.com
Fri Jan 16 13:44:26 PST 2015
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! <nicolas.brunie at kalray.eu>
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':
More information about the cfe-commits
mailing list