mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-08 02:30:48 +00:00
Fix variable name style. Don't cast to and from int.
This enables the compiler to see the enum and produce warnings about a switch not being fully covered. Fix one of these warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -44,6 +44,8 @@ ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) {
|
||||
sys::fs::file_magic Type = sys::fs::identify_magic(Object->getBuffer());
|
||||
switch (Type) {
|
||||
case sys::fs::file_magic::unknown:
|
||||
case sys::fs::file_magic::bitcode:
|
||||
case sys::fs::file_magic::archive:
|
||||
return 0;
|
||||
case sys::fs::file_magic::elf_relocatable:
|
||||
case sys::fs::file_magic::elf_executable:
|
||||
|
Reference in New Issue
Block a user