diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-11 18:48:02 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-11 18:48:02 +0000 |
commit | 4661b39e33aae6d9a9fa29c86d3f35e65c4e9005 (patch) | |
tree | b3e1c87f335d7921d310e08c3c956f30144769e4 | |
parent | f7149554029129edb893f7271f4f584a11ef1d9a (diff) | |
download | bcm5719-llvm-4661b39e33aae6d9a9fa29c86d3f35e65c4e9005.tar.gz bcm5719-llvm-4661b39e33aae6d9a9fa29c86d3f35e65c4e9005.zip |
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
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |