Fix -Werror when compiling rL318083
authorSerge Guelton <sguelton@quarkslab.com>
Mon, 13 Nov 2017 21:25:35 +0000 (21:25 +0000)
committerSerge Guelton <sguelton@quarkslab.com>
Mon, 13 Nov 2017 21:25:35 +0000 (21:25 +0000)
commit8dd0160dab9836246974d080458415e903723d55
tree3ec8784022c853bd530a3d4beea4f52668d56502
parent73d0e94e8262de3848b5773328b0a9bd1e7a4892
Fix -Werror when compiling rL318083

Statically assert the result and remove a runtime comparison, a direct consequence of the optimization introduced in rL318083.

llvm-svn: 318087
llvm/include/llvm/IR/Constant.h