[PATCH] Fix/Improve SourceRange of explicitly defaulted members
Daniel Jasper
djasper at google.com
Wed Jun 18 05:13:32 PDT 2014
Fall back to getLocation() if getEndLoc() returns an invalid source location (this fixes a few tests for the default copy operators). Also fix a test that seems to have relied on the incorrectly calculated ranges (is the fix right?).
http://reviews.llvm.org/D4175
Files:
lib/Sema/SemaDeclCXX.cpp
test/Analysis/inlining/path-notes.cpp
test/Misc/ast-dump-decl.cpp
test/SemaTemplate/instantiate-default-assignment-operator.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4175.10553.patch
Type: text/x-patch
Size: 7430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140618/4b12511f/attachment.bin>
More information about the cfe-commits
mailing list