[cfe-commits] r66344 - in /cfe/trunk: Driver/ASTConsumers.cpp lib/Driver/Arg.cpp lib/Lex/Preprocessor.cpp

Mike Stump mrs at apple.com
Sat Mar 7 10:35:42 PST 2009


Author: mrs
Date: Sat Mar  7 12:35:41 2009
New Revision: 66344

URL: http://llvm.org/viewvc/llvm-project?rev=66344&view=rev
Log:
Fix warnings in build on clang-x86_64-freebsd buildbot.

Modified:
    cfe/trunk/Driver/ASTConsumers.cpp
    cfe/trunk/lib/Driver/Arg.cpp
    cfe/trunk/lib/Lex/Preprocessor.cpp

Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=66344&r1=66343&r2=66344&view=diff

==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Sat Mar  7 12:35:41 2009
@@ -1011,7 +1011,7 @@
     std::vector<char> buf;
     buf.reserve(strlen(FE->getName())+100);    
     
-    sprintf(&buf[0], "dev_%llx", (uint64_t) FE->getDevice());
+    sprintf(&buf[0], "dev_%llx", (unsigned long long) FE->getDevice());
     FName.appendComponent(&buf[0]);
     FName.createDirectoryOnDisk(true);
     if (!FName.canWrite() || !FName.isDirectory()) {
@@ -1019,7 +1019,8 @@
       return;
     }
             
-    sprintf(&buf[0], "%s-%llX.ast", FE->getName(), (uint64_t) FE->getInode());
+    sprintf(&buf[0], "%s-%llX.ast", FE->getName(),
+            (unsigned long long) FE->getInode());
     FName.appendComponent(&buf[0]);    
     EmitASTBitcodeFile(&TU, FName);
     

Modified: cfe/trunk/lib/Driver/Arg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Arg.cpp?rev=66344&r1=66343&r2=66344&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Arg.cpp (original)
+++ cfe/trunk/lib/Driver/Arg.cpp Sat Mar  7 12:35:41 2009
@@ -145,4 +145,5 @@
                                            unsigned N) const {
   assert(N < getNumValues() && "Invalid index.");
   assert(0 && "FIXME: Implement");
+  return 0;
 }

Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=66344&r1=66343&r2=66344&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Sat Mar  7 12:35:41 2009
@@ -440,7 +440,7 @@
                            const char *ValSuffix, bool isSigned,
                            std::vector<char> &Buf) {
   char MacroBuf[60];
-  uint64_t MaxVal;
+  long long MaxVal;
   if (isSigned)
     MaxVal = (1LL << (TypeWidth - 1)) - 1;
   else





More information about the cfe-commits mailing list