diff options
author | Devang Patel <dpatel@apple.com> | 2010-10-12 23:23:25 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-10-12 23:23:25 +0000 |
commit | a2c21a2ddd84a216bad48a005ccec12c7cfd1549 (patch) | |
tree | 6e567621a9a4a06d49634ccfaf4e7b85e5bb3bff /lib/Sema/SemaExpr.cpp | |
parent | 337ec3d0e8cb24a591ecbecdc0a995a167f6af01 (diff) |
Fix anon union member assignment expression's location.
This is tested by anon-union.exp in gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 514d9ba3f2..68bb2b0723 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -570,7 +570,7 @@ Sema::BuildAnonymousStructUnionMemberReference(SourceLocation Loc, // therefore, not part of another non-anonymous record). MarkDeclarationReferenced(Loc, BaseObject); BaseObjectExpr = new (Context) DeclRefExpr(BaseObject,BaseObject->getType(), - SourceLocation()); + Loc); BaseQuals = Context.getCanonicalType(BaseObject->getType()).getQualifiers(); } else if (BaseObjectExpr) { |