aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-01-17 01:36:09 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-01-17 01:36:09 +0000
commit847794a7620bfd5fda09ee06bc0205d30e17e2aa (patch)
treeefef722fb35cfdf145a92927afd903e23e016556 /Sema/SemaExpr.cpp
parent42599555d155042b6649217611f93d8bbca62a74 (diff)
Computed length of a __func__ identifier used in an objective-c method correctly,
when creating its type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/SemaExpr.cpp')
-rw-r--r--Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index c88985f75a..81376a6500 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -131,7 +131,7 @@ Sema::ExprResult Sema::ActOnPreDefinedExpr(SourceLocation Loc,
if (CurFunctionDecl)
Length = CurFunctionDecl->getIdentifier()->getLength();
else
- Length = CurMethodDecl->getSelector().getName().size();
+ Length = CurMethodDecl->getSynthesizedSelectorSize();
llvm::APInt LengthI(32, Length + 1);
QualType ResTy = Context.CharTy.getQualifiedType(QualType::Const);