llvm::sys::cas_flag is 'long' instead of 'uint32_t' on win32, because
that's what InterlockedIncrement is defined to accept.
I still don't know if we should be calling fprintf from ASTUnit.cpp
behind a getenv check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200718
91177308-0d34-0410-b5e6-
96231b3b80d8
UnsafeToFree(false) {
if (getenv("LIBCLANG_OBJTRACKING")) {
llvm::sys::AtomicIncrement(&ActiveASTUnitObjects);
- fprintf(stderr, "+++ %d translation units\n", ActiveASTUnitObjects);
+ fprintf(stderr, "+++ %d translation units\n", (int)ActiveASTUnitObjects);
}
}
if (getenv("LIBCLANG_OBJTRACKING")) {
llvm::sys::AtomicDecrement(&ActiveASTUnitObjects);
- fprintf(stderr, "--- %d translation units\n", ActiveASTUnitObjects);
+ fprintf(stderr, "--- %d translation units\n", (int)ActiveASTUnitObjects);
}
}