projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce2c8b3
)
Fix unchecked Error introduced in r350956
author
Alexandre Ganea
<alexandre.ganea@ubisoft.com>
Fri, 11 Jan 2019 20:39:38 +0000
(20:39 +0000)
committer
Alexandre Ganea
<alexandre.ganea@ubisoft.com>
Fri, 11 Jan 2019 20:39:38 +0000
(20:39 +0000)
llvm-svn: 350968
lld/COFF/PDB.cpp
patch
|
blob
|
history
diff --git
a/lld/COFF/PDB.cpp
b/lld/COFF/PDB.cpp
index
296009b
..
7862b6c
100644
(file)
--- 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 " +