Skip to content

Commit 0971ca6

Browse files
committed
Swift: emit <Builtin>.trap instead of .trap
1 parent 2c153f6 commit 0971ca6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

swift/extractor/SwiftExtractor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ static std::string getFilename(swift::ModuleDecl& module, swift::SourceFile* pri
6666
filename += module.getName().str();
6767
return filename;
6868
}
69+
if (module.isBuiltinModule()) {
70+
// The Builtin module has an empty filename, let's fix that
71+
return "/<Builtin>";
72+
}
6973
return module.getModuleFilename().str();
7074
}
7175

0 commit comments

Comments
 (0)