Make it not trigger the assertion in getExpansion().
Fixes PR24749.
Differential D17722
Make sure SLocEntry is an expansion before using getExpansion() method in SourceManager. AbandonedPublic Authored by hokein on Feb 29 2016, 8:32 AM.
Details
Diff Detail Event TimelineComment Actions This doesn't have a test case. Also I don't understand why this is the correct fix. If someone is calling one of those method with a file SourceLocation (as opposed to a macro SourceLocation) they should stop doing that. Comment Actions
After a more deep investigation, I think the bug isn't related to SourceManger now. I'm closing this as in favor of D17805 .
Revision Contents
Diff 49382 lib/Basic/SourceManager.cpp
|