Skip to content
Snippets Groups Projects
Commit 60d9845f authored by Mehdi Amini's avatar Mehdi Amini
Browse files

Fix clang crash: when CodeGenAction is initialized without a context, use the...

Fix clang crash: when CodeGenAction is initialized without a context, use the member and not the parameter

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263273 91177308-0d34-0410-b5e6-96231b3b80d8
parent 71c9b3ea
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment