From d68615f46da579fff14cc5ad028e5df79e97d03d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 29 Jun 2012 16:39:58 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.1