X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FPath.cpp;h=d345829d4dd5655f13833cf2b870c7f9d59a2304;hb=6c0458d2b4910f94dfbf24234e98b386ec0b3f69;hp=5b73631d9896b5a5e257e49c3f918b6c3865e7e4;hpb=faec753dd41d30a13f18b79a87a63a76bcca28c6;p=oota-llvm.git diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index 5b73631d989..d345829d4dd 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -577,7 +577,7 @@ void system_temp_directory(bool erasedOnReboot, SmallVectorImpl &result) { // macros defined in on darwin >= 9 int ConfName = erasedOnReboot? _CS_DARWIN_USER_TEMP_DIR : _CS_DARWIN_USER_CACHE_DIR; - size_t ConfLen = confstr(ConfName, 0, 0); + size_t ConfLen = confstr(ConfName, nullptr, 0); if (ConfLen > 0) { do { result.resize(ConfLen);