[cfe-commits] r159436 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Nico Weber nicolasweber at gmx.de
Fri Jun 29 09:39:59 PDT 2012


Author: nico
Date: Fri Jun 29 11:39:58 2012
New Revision: 159436

URL: http://llvm.org/viewvc/llvm-project?rev=159436&view=rev
Log:
Change condition to be the same as in SemaTemplateInstantiate.

No functionality change.


Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=159436&r1=159435&r2=159436&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Fri Jun 29 11:39:58 2012
@@ -2498,7 +2498,7 @@
     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();





More information about the cfe-commits mailing list