]> granicus.if.org Git - llvm/commit
[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)
commit70629e6c18182633d98ece139a63ab7cbbe396e8
tree5af55b4f05e0cd4c907a672104fa01d7f3b5252b
parent99767332b8fe412bf65b121fe6c951c417f8baaa
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301761 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantRange.cpp