diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-07 21:26:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-07 21:26:07 +0000 |
commit | 83233a4b7c2bc7b531ffa3b33fdd1cd8138373b6 (patch) | |
tree | b28851627b9cb301793349e9487f9c83eb9cb8e5 /lib/Sema/SemaInit.cpp | |
parent | 4b1e275eb743b46cd10153bb58743d89af7242ea (diff) |
Fix printing of member references to avoid displaying implicitly-generated member references, e.g., for anonymous struct/unions or implicit 'this' in member functions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 031fe27ddf..6a9275fbe8 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -90,6 +90,7 @@ void InitListChecker::CheckImplicitInitList(InitListExpr *ParentIList, &InitExprs[0], InitExprs.size(), SourceLocation(), ParentIList->hadDesignators()); + ILE->setImplicit(); ILE->setType(T); // Modify the parent InitListExpr to point to the implicit InitListExpr. |