From: Nico Weber Date: Fri, 29 Jun 2012 16:39:58 +0000 (+0000) Subject: Change condition to be the same as in SemaTemplateInstantiate. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d68615f46da579fff14cc5ad028e5df79e97d03d;p=clang 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 --- 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();