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

Mehdi Amini via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 11 10:48:02 PST 2016


Author: mehdi_amini
Date: Fri Mar 11 12:48:02 2016
New Revision: 263273

URL: http://llvm.org/viewvc/llvm-project?rev=263273&view=rev
Log:
Fix clang crash: when CodeGenAction is initialized without a context, use the member and not the parameter

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

Modified:
    cfe/trunk/lib/CodeGen/CodeGenAction.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=263273&r1=263272&r2=263273&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Fri Mar 11 12:48:02 2016
@@ -660,7 +660,7 @@ CodeGenAction::CodeGenAction(unsigned _A
 #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
 }
 




More information about the cfe-commits mailing list