[llvm] r220775 - Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC.
Aaron Ballman
aaron at aaronballman.com
Tue Oct 28 06:12:13 PDT 2014
Author: aaronballman
Date: Tue Oct 28 08:12:13 2014
New Revision: 220775
URL: http://llvm.org/viewvc/llvm-project?rev=220775&view=rev
Log:
Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC.
Modified:
llvm/trunk/lib/IR/Mangler.cpp
Modified: llvm/trunk/lib/IR/Mangler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Mangler.cpp?rev=220775&r1=220774&r2=220775&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Mangler.cpp (original)
+++ llvm/trunk/lib/IR/Mangler.cpp Tue Oct 28 08:12:13 2014
@@ -120,7 +120,8 @@ void Mangler::getNameWithPrefix(raw_ostr
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;
More information about the llvm-commits
mailing list