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 | e25b5f86d0c968769ac9a1b32567dc2bfd6abe44 (patch) | |
| tree | 0280aaf939e5e5a53ba8220deae7818aea3121d4 /clang/lib/Sema | |
| parent | a06aee826cdee318094b2fd42ab300592643ccd6 (diff) | |
| download | bcm5719-llvm-e25b5f86d0c968769ac9a1b32567dc2bfd6abe44.tar.gz bcm5719-llvm-e25b5f86d0c968769ac9a1b32567dc2bfd6abe44.zip | |
Fix anon union member assignment expression's location.
This is tested by anon-union.exp in gdb testsuite.
llvm-svn: 116371
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 514d9ba3f2f..68bb2b07233 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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) { |

