summaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-01-11 20:39:38 +0000
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-01-11 20:39:38 +0000
commit66b4a68cf5f44678b3bbdd1c23b44795441a9085 (patch)
treed1ee2ebd64ce60fbabbe035963991b8b9a944de3 /lld
parent551fb65e6949822c60ba4d2b62a2c580e176448e (diff)
Fix unchecked Error introduced in r350956
Diffstat (limited to 'lld')
-rw-r--r--lld/COFF/PDB.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/COFF/PDB.cpp b/lld/COFF/PDB.cpp
index 296009b461a..7862b6ce4cc 100644
--- a/lld/COFF/PDB.cpp
+++ b/lld/COFF/PDB.cpp
@@ -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 " +