forked from OSchip/llvm-project
Fix clang crash: when CodeGenAction is initialized without a context, use the member and not the parameter
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263273
This commit is contained in:
parent
f714955402
commit
4661b39e33
|
@ -660,7 +660,7 @@ CodeGenAction::CodeGenAction(unsigned _Act, LLVMContext *_VMContext)
|
|||
#ifdef NDEBUG
|
||||
// FIXME: change this to be controlled by a cc1 flag that the driver passes,
|
||||
// on the model of --disable-free
|
||||
_VMContext->setDiscardValueNames(true);
|
||||
VMContext->setDiscardValueNames(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue