[ConstantRange] Fix a couple cases where we were possibly throwing away an APInt...
authorCraig Topper <craig.topper@gmail.com>
Sun, 30 Apr 2017 00:44:05 +0000 (00:44 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 30 Apr 2017 00:44:05 +0000 (00:44 +0000)
commit866165309f3d776ad795bb545383028be3eefa21
tree126b5f45a948f8ffc3b9274afb480b51be99ccf4
parentc12f10fe191759436526b118b85980ce1c41499f
[ConstantRange] Fix a couple cases where we were possibly throwing away an APInt allocation we could reuse. NFC

This uses setAllBits to replace getMaxValue and operator=(uint64_t) instead of constructing an APInt from uint64_t.

llvm-svn: 301761
llvm/lib/IR/ConstantRange.cpp