From 4661b39e33aae6d9a9fa29c86d3f35e65c4e9005 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 11 Mar 2016 18:48:02 +0000 Subject: Fix clang crash: when CodeGenAction is initialized without a context, use the member and not the parameter From: Mehdi Amini llvm-svn: 263273 --- clang/lib/CodeGen/CodeGenAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenAction.cpp') diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 67945cdb901..5e939accdba 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/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 } -- cgit v1.2.3