Fix a copy and paste error that would cause a crash.
authorGreg Clayton <gclayton@fb.com>
Fri, 6 Mar 2020 22:59:41 +0000 (14:59 -0800)
committerGreg Clayton <gclayton@fb.com>
Sat, 7 Mar 2020 02:07:36 +0000 (18:07 -0800)
commiteb61ab1bd9af607fc7439edd3b92467b78772b92
tree5f8278a108b53f8a84fdbb77c834697367049e7b
parent7003f64c1eb25e6a0dd10a4beabc3ca7bcaef7eb
Fix a copy and paste error that would cause a crash.

Summary: The wrong variable was being checked for an error, which mean a llvm::Error went unchecked and crashes dsymutil. Discovered this when trying to feed an ELF file to "dsymutil --update" and running into the crash.

Reviewers: aprantl, JDevlieghere

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75777
llvm/tools/dsymutil/MachODebugMapParser.cpp