mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Basic] Don't rewrite source buffer copy multiple times
The on-disc buffer file name was not recorded correctly. rdar://130478685
This commit is contained in:
@@ -907,7 +907,7 @@ ModuleDecl::getOriginalLocation(SourceLoc loc) const {
|
||||
|
||||
SourceLoc startLoc = loc;
|
||||
unsigned startBufferID = bufferID;
|
||||
while (std::optional<GeneratedSourceInfo> info =
|
||||
while (const GeneratedSourceInfo *info =
|
||||
SM.getGeneratedSourceInfo(bufferID)) {
|
||||
switch (info->kind) {
|
||||
#define MACRO_ROLE(Name, Description) \
|
||||
|
||||
Reference in New Issue
Block a user