Fix a bug in IRBuilder that's been there for who knows how long. It
authorChandler Carruth <chandlerc@gmail.com>
Sun, 5 Jan 2014 03:22:33 +0000 (03:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 5 Jan 2014 03:22:33 +0000 (03:22 +0000)
commitb54a0ac20ac76f845026eab8fca112d1d40927de
treeb514003a548093e3017c1af741c0111b91c46765
parent62107b62682ecdb4f03c1d773523754e9ac8188c
Fix a bug in IRBuilder that's been there for who knows how long. It
failed to correctly propagate the NUW and NSW flags to the constant
folder for two instructions. I've added a unittest to cover flag
propagation for the rest of the instructions and constant expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198538 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
unittests/IR/IRBuilderTest.cpp