Use nullptr to silence -Wsentinel when self-hosting on Windows
authorReid Kleckner <reid@kleckner.net>
Mon, 1 Dec 2014 22:02:27 +0000 (22:02 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 1 Dec 2014 22:02:27 +0000 (22:02 +0000)
commitee7cf84c8feb9ddc93fc5917e04d9db1a375db5f
tree390ec6b0d704161cbf2fcda48a5e03a247bfaecc
parent337c4bd4abac1198312d5d009cf6185063c97812
Use nullptr to silence -Wsentinel when self-hosting on Windows

Richard rejected my Sema change to interpret an integer literal zero in
a varargs context as a null pointer, so -Wsentinel sees an integer
literal zero and fires off a warning. Only CodeGen currently knows that
it promotes integer literal zeroes in this context to pointer size on
Windows.  I didn't want to teach -Wsentinel about that compatibility
hack. Therefore, I'm migrating to C++11 nullptr.

llvm-svn: 223079
clang/lib/CodeGen/CGBlocks.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CGException.cpp
clang/lib/CodeGen/CGExprConstant.cpp
clang/lib/CodeGen/CGObjCMac.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenTypes.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp