summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/parse.cxx b/parse.cxx
index 4a4b973f..c4f028b7 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1650,19 +1650,12 @@ parser::parse_symbol ()
while (true)
{
string c;
- if (peek_op ("."))
- {
- next();
- expect_ident (c);
- tsym->components.push_back
- (make_pair (target_symbol::comp_struct_member, c));
- }
- else if (peek_op ("->"))
+ if (peek_op ("->"))
{
next();
expect_ident (c);
tsym->components.push_back
- (make_pair (target_symbol::comp_struct_pointer_member, c));
+ (make_pair (target_symbol::comp_struct_member, c));
}
else if (peek_op ("["))
{