diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-11-13 22:55:19 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-11-13 22:55:19 +0000 |
| commit | 971c3ea67b7ba140a5d7634111fd1063d86d2cdd (patch) | |
| tree | 8848ac3f29b9828ac25ca2b3128764362f430a13 /llvm/lib/IR/ConstantRange.cpp | |
| parent | 8716b58583cf5e753f2dc2cfb214cdf24a839c43 (diff) | |
| download | bcm5719-llvm-971c3ea67b7ba140a5d7634111fd1063d86d2cdd.tar.gz bcm5719-llvm-971c3ea67b7ba140a5d7634111fd1063d86d2cdd.zip | |
Use nullptr instead of NULL for variadic sentinels
Windows defines NULL to 0, which when used as an argument to a variadic
function, is not a null pointer constant. As a result, Clang's
-Wsentinel fires on this code. Using '0' would be wrong on most 64-bit
platforms, but both MSVC and Clang make it work on Windows. Sidestep the
issue with nullptr.
llvm-svn: 221940
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
0 files changed, 0 insertions, 0 deletions

