summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-11-08 12:02:25 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-11-08 12:02:25 +0000
commit0d9ee2eb2e771243cafe0c015551c322ef5d615c (patch)
tree4b6fe009e19bfa66cb47831e436b026f13dd39aa
parent13042a4a4a4c612e8f9e2ece59dbe719b2a3ecd5 (diff)
downloadbcm5719-llvm-0d9ee2eb2e771243cafe0c015551c322ef5d615c.tar.gz
bcm5719-llvm-0d9ee2eb2e771243cafe0c015551c322ef5d615c.zip
Revert r58880, it breaks test/SemaCXX/constructor.cpp
llvm-svn: 58904
-rw-r--r--clang/lib/Parse/ParseDecl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 39d3acc0f9e..2b18be02a3d 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1363,8 +1363,7 @@ void Parser::ParseDirectDeclarator(Declarator &D) {
// Determine whether this identifier is a C++ constructor name or
// a normal identifier.
if (getLang().CPlusPlus &&
- Actions.isCurrentClassName(*Tok.getIdentifierInfo(), CurScope) &&
- NextToken().is(tok::l_paren))
+ Actions.isCurrentClassName(*Tok.getIdentifierInfo(), CurScope))
D.SetConstructor(Actions.isTypeName(*Tok.getIdentifierInfo(), CurScope),
Tok.getIdentifierInfo(), Tok.getLocation());
else
OpenPOWER on IntegriCloud