by Nuno Lopes for PR2089
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47787
91177308-0d34-0410-b5e6-
96231b3b80d8
Tok.getLocation(), PP);
if (Literal.hadError())
return ExprResult(true);
- return new CharacterLiteral(Literal.getValue(), Context.IntTy,
- Tok.getLocation());
+
+ QualType type = getLangOptions().CPlusPlus ? Context.CharTy : Context.IntTy;
+
+ return new CharacterLiteral(Literal.getValue(), type, Tok.getLocation());
}
Action::ExprResult Sema::ActOnNumericConstant(const Token &Tok) {