From 66be164fd865f01c3d44b7f31c4c2f1f94630deb Mon Sep 17 00:00:00 2001 From: Douglas Yung Date: Thu, 23 Aug 2018 18:20:13 +0000 Subject: [PATCH] Fixup AreCoreFilesPrevented() to consider first LLVM_ENABLE_CRASH_DUMPS and secondly coreFilesPrevented. The previous change ignored the latter resulting in crash dumps being generated when LLVM_ENABLE_CRASH_DUMPS was set, but coreFilesPrevented was true. llvm-svn: 340561 --- llvm/lib/Support/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp index b46edb1..bf5779d 100644 --- a/llvm/lib/Support/Process.cpp +++ b/llvm/lib/Support/Process.cpp @@ -87,7 +87,7 @@ static const char colorcodes[2][2][8][10] = { static bool coreFilesPrevented = false; bool Process::AreCoreFilesPrevented() { - return !LLVM_ENABLE_CRASH_DUMPS; + return LLVM_ENABLE_CRASH_DUMPS ? coreFilesPrevented : false; } // Include the platform-specific parts of this class. -- 2.7.4