mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 20:33:14 +01:00
Fix crash when declaration is coming without Loc from the front-end.
This commit is contained in:
@@ -51,7 +51,7 @@ static llvm::DIType dwarfTypeDescription(Type* type, const char* c_name);
|
||||
|
||||
llvm::DIFile DtoDwarfFile(Loc loc)
|
||||
{
|
||||
llvm::SmallString<128> path(loc.filename);
|
||||
llvm::SmallString<128> path(loc.filename ? loc.filename : "");
|
||||
llvm::sys::fs::make_absolute(path);
|
||||
|
||||
return gIR->dibuilder.createFile(
|
||||
|
||||
Reference in New Issue
Block a user