forked from OSchip/llvm-project
[ELF] Fix MSVC warning on conversion from enum to bool.
This function returns a boolean value, so returning STT_COMMON does not make sense. llvm-svn: 203731
This commit is contained in:
parent
b5de6b066d
commit
b325b81138
|
@ -162,8 +162,7 @@ public:
|
||||||
case llvm::ELF::SHN_HEXAGON_SCOMMON_2:
|
case llvm::ELF::SHN_HEXAGON_SCOMMON_2:
|
||||||
case llvm::ELF::SHN_HEXAGON_SCOMMON_4:
|
case llvm::ELF::SHN_HEXAGON_SCOMMON_4:
|
||||||
case llvm::ELF::SHN_HEXAGON_SCOMMON_8:
|
case llvm::ELF::SHN_HEXAGON_SCOMMON_8:
|
||||||
return llvm::ELF::STT_COMMON;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue