Remove unnecessary temporary variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rui Ueyama 2014-02-28 00:06:20 +00:00
parent 8594ec6570
commit 64e9de348b

View File

@ -224,10 +224,8 @@ static void printCOFFSymbolAddress(llvm::raw_ostream &Out,
const std::vector<RelocationRef> &Rels,
uint64_t Offset, uint32_t Disp) {
StringRef Sym;
if (error_code EC = resolveSymbolName(Rels, Offset, Sym)) {
error(EC);
return ;
}
if (error(resolveSymbolName(Rels, Offset, Sym)))
return;
Out << Sym;
if (Disp > 0)
Out << format(" + 0x%04x", Disp);