diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-02 21:45:49 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-18 14:04:46 +0100 |
| commit | 52b5150cfd3dfcdf518675e9073f03e061a63a53 (patch) | |
| tree | f151c225b58184958d90227f805e383903f0db91 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | dfc5c0f1e8799f47f9033bdcc8a7cd8a217620a5 (diff) | |
| download | rust-52b5150cfd3dfcdf518675e9073f03e061a63a53.tar.gz rust-52b5150cfd3dfcdf518675e9073f03e061a63a53.zip | |
Avoid ptrtoint when checking if a pointer is null
Casting the pointer to an integer requires a ptrtoint, while casting 0 to a pointer is directly folded to a `null` value.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
