capture whether a CharacterLiteral was wide or not in the AST.
Patch by Mike Stump!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52081 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index e918572..e849710 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -183,7 +183,8 @@
QualType type = getLangOptions().CPlusPlus ? Context.CharTy : Context.IntTy;
- return new CharacterLiteral(Literal.getValue(), type, Tok.getLocation());
+ return new CharacterLiteral(Literal.getValue(), Literal.isWide(), type,
+ Tok.getLocation());
}
Action::ExprResult Sema::ActOnNumericConstant(const Token &Tok) {