forked from OSchip/llvm-project
Fix warnings in build on clang-x86_64-freebsd buildbot.
llvm-svn: 66344
This commit is contained in:
parent
06cc45ec85
commit
82d8d559bb
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue