We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea7a074 commit 4edced7Copy full SHA for 4edced7
vmbuild/elf_syms.cpp
@@ -206,9 +206,13 @@ static int prune_elf_symbols(char* location)
206
assert(hdr->e_ident[EI_MAG2] == ELFMAG2);
207
assert(hdr->e_ident[EI_MAG3] == ELFMAG3);
208
209
- if (hdr->e_ident[EI_CLASS] == ELFCLASS32)
210
- return prune_elf32_symbols(location);
211
- else if (hdr->e_ident[EI_CLASS] == ELFCLASS64)
212
- return prune_elf64_symbols(location);
213
- assert(0 && "Unknown ELF class");
+ switch (hdr->e_ident[EI_CLASS]) {
+ case ELFCLASS32:
+ return prune_elf32_symbols(location);
+ case ELFCLASS64:
+ return prune_elf64_symbols(location);
214
+ default:
215
+ assert(false && "Unknown ELF class");
216
+ return 0;
217
+ }
218
}
0 commit comments