OSDN Git Service

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)
commit5aed538ef1d51a34d2d3fd86b26da78dd1fe77c3
tree034a12bb3e4c06974d93fde5a8c93b079ebaa9c0
parentcfcc1f1c64e267f94119cca6cb1021561e7ef125
Fix -Werror when compiling rL318083

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318087 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Constant.h