forked from OSchip/llvm-project
Fix unchecked Error introduced in r350956
llvm-svn: 350968
This commit is contained in:
parent
ce2c8b3360
commit
7d9fc98db0
|
@ -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 (!IndexMapResult) {
|
||||
if (!Config->WarnDebugInfoUnusable)
|
||||
if (!Config->WarnDebugInfoUnusable) {
|
||||
consumeError(IndexMapResult.takeError());
|
||||
return;
|
||||
}
|
||||
StringRef FileName = sys::path::filename(Path);
|
||||
warn("Cannot use debug info for '" + FileName + "' [LNK4099]\n" +
|
||||
">>> failed to load reference " +
|
||||
|
|
Loading…
Reference in New Issue