File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -698,13 +698,13 @@ ELFReader::ELFReader(StringRef File) {
698
698
}
699
699
700
700
ElfType ELFReader::getElfType () const {
701
- if (auto *o = dyn_cast <ELFObjectFile<ELF32LE>>(Binary.get ()))
701
+ if (isa <ELFObjectFile<ELF32LE>>(Binary.get ()))
702
702
return ELFT_ELF32LE;
703
- if (auto *o = dyn_cast <ELFObjectFile<ELF64LE>>(Binary.get ()))
703
+ if (isa <ELFObjectFile<ELF64LE>>(Binary.get ()))
704
704
return ELFT_ELF64LE;
705
- if (auto *o = dyn_cast <ELFObjectFile<ELF32BE>>(Binary.get ()))
705
+ if (isa <ELFObjectFile<ELF32BE>>(Binary.get ()))
706
706
return ELFT_ELF32BE;
707
- if (auto *o = dyn_cast <ELFObjectFile<ELF64BE>>(Binary.get ()))
707
+ if (isa <ELFObjectFile<ELF64BE>>(Binary.get ()))
708
708
return ELFT_ELF64BE;
709
709
llvm_unreachable (" Invalid ELFType" );
710
710
}
You can’t perform that action at this time.
0 commit comments