[cfe-commits] r91714 - in /cfe/trunk/lib: CodeGen/CGBuiltin.cpp Frontend/PCHWriter.cpp
Daniel Dunbar
daniel at zuster.org
Fri Dec 18 12:58:47 PST 2009
Author: ddunbar
Date: Fri Dec 18 14:58:47 2009
New Revision: 91714
URL: http://llvm.org/viewvc/llvm-project?rev=91714&view=rev
Log:
Fix a few MSVC warnings.
Modified:
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
cfe/trunk/lib/Frontend/PCHWriter.cpp
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=91714&r1=91713&r2=91714&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Fri Dec 18 14:58:47 2009
@@ -853,7 +853,5 @@
Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID,
const CallExpr *E) {
- switch (BuiltinID) {
- default: return 0;
- }
+ return 0;
}
Modified: cfe/trunk/lib/Frontend/PCHWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriter.cpp?rev=91714&r1=91713&r2=91714&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriter.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriter.cpp Fri Dec 18 14:58:47 2009
@@ -1645,10 +1645,10 @@
II->hasMacroDefinition() &&
!PP.getMacroInfo(const_cast<IdentifierInfo *>(II))->isBuiltinMacro();
Bits = (uint32_t)II->getObjCOrBuiltinID();
- Bits = (Bits << 1) | hasMacroDefinition;
- Bits = (Bits << 1) | II->isExtensionToken();
- Bits = (Bits << 1) | II->isPoisoned();
- Bits = (Bits << 1) | II->isCPlusPlusOperatorKeyword();
+ Bits = (Bits << 1) | unsigned(hasMacroDefinition);
+ Bits = (Bits << 1) | unsigned(II->isExtensionToken());
+ Bits = (Bits << 1) | unsigned(II->isPoisoned());
+ Bits = (Bits << 1) | unsigned(II->isCPlusPlusOperatorKeyword());
clang::io::Emit16(Out, Bits);
if (hasMacroDefinition)
More information about the cfe-commits
mailing list