Skip to content

Commit ad3ceda

Browse files
author
Chen Zheng
committed
rebase
1 parent f0be247 commit ad3ceda

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Object/XCOFFObjectFile.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,11 +1276,8 @@ Expected<bool> XCOFFSymbolRef::isFunction() const {
12761276

12771277
// Check next symbol is XTY_LD. If so, this symbol is not a function.
12781278
Expected<XCOFFCsectAuxRef> NextCsectAuxEnt = NextIt->getXCOFFCsectAuxRef();
1279-
if (!NextCsectAuxEnt) {
1280-
// If the next symbol has no aux entries, won't be a XTY_LD symbol.
1281-
consumeError(NextCsectAuxEnt.takeError());
1282-
return true;
1283-
}
1279+
if (!NextCsectAuxEnt)
1280+
return NextCsectAuxEnt.takeError();
12841281

12851282
if (NextCsectAuxEnt.get().getSymbolType() == XCOFF::XTY_LD)
12861283
return false;

0 commit comments

Comments
 (0)