diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-06-29 16:39:58 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-06-29 16:39:58 +0000 |
commit | d68615f46da579fff14cc5ad028e5df79e97d03d (patch) | |
tree | 1d4aa29cabc32466e8b53c6a4af5339a03f90b67 /lib/Sema/SemaExpr.cpp | |
parent | 0851e3b48aff7ae496621627dd6bcc4ac5e9536d (diff) |
Change condition to be the same as in SemaTemplateInstantiate.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index cd3c93b720..e65c21d085 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -2498,7 +2498,7 @@ ExprResult Sema::ActOnPredefinedExpr(SourceLocation Loc, tok::TokenKind Kind) { unsigned Length = PredefinedExpr::ComputeName(IT, currentDecl).length(); llvm::APInt LengthI(32, Length + 1); - if (Kind == tok::kw_L__FUNCTION__) + if (IT == PredefinedExpr::LFunction) ResTy = Context.WCharTy.withConst(); else ResTy = Context.CharTy.withConst(); |