forked from OSchip/llvm-project
Fix windows buildbot where warnings are errors. We had a switch statement where all enumerations were handled, but some compilers don't recognize this. Simplify the logic so that all compilers will know a return value is returned in all cases.
llvm-svn: 286600
This commit is contained in:
parent
180529892d
commit
e50b286c9e
|
@ -204,12 +204,9 @@ public:
|
|||
return getDwarfOffsetByteSize();
|
||||
}
|
||||
uint8_t getDwarfOffsetByteSize() const {
|
||||
switch (getFormat()) {
|
||||
case dwarf::DwarfFormat::DWARF32:
|
||||
return 4;
|
||||
case dwarf::DwarfFormat::DWARF64:
|
||||
if (getFormat() == dwarf::DwarfFormat::DWARF64)
|
||||
return 8;
|
||||
}
|
||||
return 4;
|
||||
}
|
||||
uint64_t getBaseAddress() const { return BaseAddr; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue