1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed getScope call in FatalError

This commit is contained in:
Brian Fiete 2020-07-14 04:53:01 -07:00
parent d3bfc731ef
commit e3d48c6842

View file

@ -363,7 +363,6 @@ void BfIRCodeGen::FatalError(const StringImpl &err)
failStr += "DbgLoc: "; failStr += "DbgLoc: ";
failStr += str; failStr += str;
failStr += "\n"; failStr += "\n";
}
llvm::MDNode* scope = loc.getScope(); llvm::MDNode* scope = loc.getScope();
if (scope != NULL) if (scope != NULL)
@ -376,6 +375,7 @@ void BfIRCodeGen::FatalError(const StringImpl &err)
failStr += "\n"; failStr += "\n";
} }
} }
}
failStr += err; failStr += err;
BF_FATAL(failStr); BF_FATAL(failStr);