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 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 " +
|
||||||
|
|
Loading…
Reference in New Issue