From a97b6666d2e08027e89a01ed718affbf969fad19 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 27 Feb 2009 19:58:12 +0000 Subject: [PATCH] In BuildAnonymousStructUnionMemberReference, we shouldn't invalidate OpLoc when building nested member expressions. This location is used to determine the range of the entire expression, and the expression itself already has its location inherited from its Base. This fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65650 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaExpr.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 43cbe98d87..8604670d6e 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -600,7 +600,6 @@ Sema::BuildAnonymousStructUnionMemberReference(SourceLocation Loc, OpLoc, MemberType); BaseObjectIsPointer = false; ExtraQuals = Context.getCanonicalType(MemberType).getCVRQualifiers(); - OpLoc = SourceLocation(); } return Owned(Result); -- 2.50.1