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:
Douglas Yung 2018-08-23 18:20:13 +00:00
parent 520201babb
commit 66be164fd8
1 changed files with 1 additions and 1 deletions

View File

@ -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.