summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2018-08-23 18:20:13 +0000
committerDouglas Yung <douglas.yung@sony.com>2018-08-23 18:20:13 +0000
commit66be164fd865f01c3d44b7f31c4c2f1f94630deb (patch)
tree720fc6f8bd638e642d9f974d714ac4c213ee4ce0 /llvm/lib
parent520201babb792eec7062630a9c3d48b13baeb701 (diff)
downloadbcm5719-llvm-66be164fd865f01c3d44b7f31c4c2f1f94630deb.tar.gz
bcm5719-llvm-66be164fd865f01c3d44b7f31c4c2f1f94630deb.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp
index b46edb1a791..bf5779d69c6 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.
OpenPOWER on IntegriCloud