Disable Visual C++ 2013 Debug mode assert on null pointer in some STL algorithms,
authorYaron Keren <yaron.keren@gmail.com>
Fri, 21 Aug 2015 17:31:03 +0000 (17:31 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 21 Aug 2015 17:31:03 +0000 (17:31 +0000)
commit3f1c66ca7df09f54022f19f5233901dc049d5a0f
treed05abd6b62bcb62ae2049550d8fecebd66b18808
parentded00c79af1b1a493424b11006440de78e016d2c
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245711 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake
docs/CodingStandards.rst
include/llvm/ADT/ArrayRef.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp