[Verifier] Disallow illegal ptr<->int casts in ConstantExprs
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 2 Aug 2016 02:55:57 +0000 (02:55 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 2 Aug 2016 02:55:57 +0000 (02:55 +0000)
commite1129ee64a97d7e647bdff6e9e3e3ce9eabe8555
tree54472b65c07c28196877169a51b00de5eaffcd94
parent42327a32b287ffeebc2539aa0bf9aa39db842512
[Verifier] Disallow illegal ptr<->int casts in ConstantExprs

This should have been a part of rL277085, but I hadn't considered this
case.

llvm-svn: 277413
llvm/lib/IR/Verifier.cpp
llvm/test/Verifier/non-integral-pointers.ll