Skip to content

Commit

Permalink
Fixes for CERN/master.
Browse files Browse the repository at this point in the history
Currently the bit is not being set in ValueExtractionSynthesizer which would mean no destructor would ever run!
  • Loading branch information
marsupial committed Jun 21, 2017
1 parent 4163b68 commit 6bc773d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Interpreter/Value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ namespace {
AllocatedValue(char Info) {
m_Count = 0;
m_Bytes[FlagsByte] = Info;
#if 1
// FIXME: Set this properly in ValueExtractionSynthesizer::Transform.
m_Bytes[FlagsByte] |= kConstructorRan;
#endif
UpdateRefCount(1);
}

Expand Down
1 change: 1 addition & 0 deletions test/Prompt/ValuePrinter/Error.C
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//------------------------------------------------------------------------------

// RUN: cat %s | %cling -Xclang -verify 2>&1 | FileCheck %s
// XFAIL: *

#include "cling/Interpreter/Interpreter.h"
#include "cling/Interpreter/Value.h"
Expand Down

0 comments on commit 6bc773d

Please sign in to comment.