1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[NFC] Fix unused variable warning.

Reviewers: dschuff

Reviewed By: dschuff

Subscribers: hiraditya, aheejin, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73591
This commit is contained in:
Nate Voorhies 2020-01-28 16:07:48 -08:00
parent 7bbbffcf9e
commit 7d8a8e7641

View File

@ -28,7 +28,7 @@ int llvm::object::compareAddress(const SymEntry *A, const SymEntry *B) {
static unsigned getSectionID(const ObjectFile &O, SectionRef Sec) {
if (auto *M = dyn_cast<MachOObjectFile>(&O))
return M->getSectionID(Sec);
if (const auto *M = dyn_cast<WasmObjectFile>(&O))
if (isa<WasmObjectFile>(&O))
return Sec.getIndex();
return cast<COFFObjectFile>(O).getSectionID(Sec);