mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a52493457
commit
7435fa333d
@ -120,7 +120,8 @@ void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV,
|
||||
const Function *MSFunc = dyn_cast<Function>(GV);
|
||||
if (Name.startswith("\01"))
|
||||
MSFunc = nullptr; // Don't mangle when \01 is present.
|
||||
CallingConv::ID CC = MSFunc ? MSFunc->getCallingConv() : CallingConv::C;
|
||||
CallingConv::ID CC =
|
||||
MSFunc ? MSFunc->getCallingConv() : (unsigned)CallingConv::C;
|
||||
if (!DL->hasMicrosoftFastStdCallMangling() &&
|
||||
CC != CallingConv::X86_VectorCall)
|
||||
MSFunc = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user