[IRBuilder] fix CreateMaxNum to actually produce maxnum (PR36454)
authorSanjay Patel <spatel@rotateright.com>
Tue, 20 Feb 2018 18:21:43 +0000 (18:21 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 20 Feb 2018 18:21:43 +0000 (18:21 +0000)
commita6043700049e8de7a8eae1fe5cd64a360d6f4426
treed84cc3259e12b0428886be0a405209b8542cef2b
parentf9f2005f9426e860c090475e04983e95d6ba04e6
[IRBuilder] fix CreateMaxNum to actually produce maxnum (PR36454)

The bug was introduced here:
https://reviews.llvm.org/rL296409
...but the patch doesn't use maxnum and nothing else in
trunk has tried since then, so the bug went unnoticed.

llvm-svn: 325607
llvm/include/llvm/IR/IRBuilder.h
llvm/unittests/IR/IRBuilderTest.cpp