diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-08-21 17:31:03 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-08-21 17:31:03 +0000 |
commit | 528d8d609229b2b59809a9c546ecf1dbf971c882 (patch) | |
tree | e3f6fd789d5bd8001708ac4c25927ba9112301c8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 8eadc3f38b73759b3e77425c0037774730ec0a7a (diff) | |
download | bcm5719-llvm-528d8d609229b2b59809a9c546ecf1dbf971c882.tar.gz bcm5719-llvm-528d8d609229b2b59809a9c546ecf1dbf971c882.zip |
Disable Visual C++ 2013 Debug mode assert on null pointer in some STL algorithms,
such as std::equal on the third argument. This reverts previous workarounds.
Predefining _DEBUG_POINTER_IMPL disables Visual C++ 2013 headers from defining
it to a function performing the null pointer check. In practice, it's not that
bad since any function actually using the nullptr will seg fault. The other
iterator sanity checks remain enabled in the headers.
Reviewed by Aaron Ballmanþ and Duncan P. N. Exon Smith.
llvm-svn: 245711
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 0ae52b2caf0..0d73bc5e65d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5676,7 +5676,7 @@ UpdateNodeOperands(SDNode *N, ArrayRef<SDValue> Ops) { "Update with wrong number of operands"); // If no operands changed just return the input node. - if (Ops.empty() || std::equal(Ops.begin(), Ops.end(), N->op_begin())) + if (std::equal(Ops.begin(), Ops.end(), N->op_begin())) return N; // See if the modified node already exists. |