IR: Fix a missed case when threading OnlyIfReduced through ConstantExpr
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 21:18:21 +0000 (21:18 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 21:18:21 +0000 (21:18 +0000)
commit8db4ddb14acde2d09938196b5d011d6591a9929b
tree3523b75a4e66c3583bc92be0443040a1ffb2e3ee
parent13f5c5896dcc43a6a9815715c1f21e953c16d2f8
IR: Fix a missed case when threading OnlyIfReduced through ConstantExpr

In r216015 I missed propagating `OnlyIfReduced` through the inline
versions of `getGetElementPtr()` (I was relying on compile failures on
mismatches between the header and source signatures to get them all).

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