From: Mehdi Amini Date: Fri, 11 Mar 2016 18:48:02 +0000 (+0000) Subject: Fix clang crash: when CodeGenAction is initialized without a context, use the member... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60d9845f6a037122d9be9a6d92d4de617ef45b04;p=clang Fix clang crash: when CodeGenAction is initialized without a context, use the member and not the parameter From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263273 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 67945cdb90..5e939accdb 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -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 }