Fix unchecked Error introduced in r350956

llvm-svn: 350968
This commit is contained in:
Alexandre Ganea 2019-01-11 20:39:38 +00:00
parent ce2c8b3360
commit 7d9fc98db0
1 changed files with 3 additions and 1 deletions

View File

@ -1301,8 +1301,10 @@ void PDBLinker::addObjFile(ObjFile *File, CVIndexMap *ExternIndexMap) {
// If the .debug$T sections fail to merge, assume there is no debug info. // If the .debug$T sections fail to merge, assume there is no debug info.
if (!IndexMapResult) { if (!IndexMapResult) {
if (!Config->WarnDebugInfoUnusable) if (!Config->WarnDebugInfoUnusable) {
consumeError(IndexMapResult.takeError());
return; return;
}
StringRef FileName = sys::path::filename(Path); StringRef FileName = sys::path::filename(Path);
warn("Cannot use debug info for '" + FileName + "' [LNK4099]\n" + warn("Cannot use debug info for '" + FileName + "' [LNK4099]\n" +
">>> failed to load reference " + ">>> failed to load reference " +