aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-03-07 18:35:41 +0000
committerMike Stump <mrs@apple.com>2009-03-07 18:35:41 +0000
commit2ace928d2799dfe4f2e0f6e5a15196e30dedc04a (patch)
tree053a7909aea3016556ae4f0addb9eb9da1427c12
parent863cffbaf66b0a46df17d45d8b497d762dcabd6b (diff)
Fix warnings in build on clang-x86_64-freebsd buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66344 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/ASTConsumers.cpp5
-rw-r--r--lib/Driver/Arg.cpp1
-rw-r--r--lib/Lex/Preprocessor.cpp2
3 files changed, 5 insertions, 3 deletions
diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp
index 409df638c9..f04f9a3a39 100644
--- a/Driver/ASTConsumers.cpp
+++ b/Driver/ASTConsumers.cpp
@@ -1011,7 +1011,7 @@ public:
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 @@ public:
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);
diff --git a/lib/Driver/Arg.cpp b/lib/Driver/Arg.cpp
index 52437e7772..16efda8ecf 100644
--- a/lib/Driver/Arg.cpp
+++ b/lib/Driver/Arg.cpp
@@ -145,4 +145,5 @@ const char *JoinedAndSeparateArg::getValue(const ArgList &Args,
unsigned N) const {
assert(N < getNumValues() && "Invalid index.");
assert(0 && "FIXME: Implement");
+ return 0;
}
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 2a9fa0a85b..e20b42ac64 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -440,7 +440,7 @@ static void DefineTypeSize(const char *MacroName, unsigned TypeWidth,
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