8033215: clang: node.cpp:284 IDX_INIT macro use uninitialized field _out
Reviewed-by: twisti, kvn
This commit is contained in:
parent
d0baa9304f
commit
a752b0b503
@ -285,6 +285,10 @@ void DUIterator_Last::verify_step(uint num_edges) {
|
|||||||
#ifdef _MSC_VER // the IDX_INIT hack falls foul of warning C4355
|
#ifdef _MSC_VER // the IDX_INIT hack falls foul of warning C4355
|
||||||
#pragma warning( disable:4355 ) // 'this' : used in base member initializer list
|
#pragma warning( disable:4355 ) // 'this' : used in base member initializer list
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wuninitialized"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Out-of-line code from node constructors.
|
// Out-of-line code from node constructors.
|
||||||
// Executed only when extra debug info. is being passed around.
|
// Executed only when extra debug info. is being passed around.
|
||||||
@ -468,6 +472,10 @@ Node::Node(Node *n0, Node *n1, Node *n2, Node *n3,
|
|||||||
_in[6] = n6; if (n6 != NULL) n6->add_out((Node *)this);
|
_in[6] = n6; if (n6 != NULL) n6->add_out((Node *)this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//------------------------------clone------------------------------------------
|
//------------------------------clone------------------------------------------
|
||||||
// Clone a Node.
|
// Clone a Node.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user