forked from OSchip/llvm-project
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
This commit is contained in:
parent
520201babb
commit
66be164fd8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue