Merging r261258:
authorHans Wennborg <hans@hanshq.net>
Fri, 19 Feb 2016 00:08:56 +0000 (00:08 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 19 Feb 2016 00:08:56 +0000 (00:08 +0000)
commit6f28d52e9d3f87875732a0f2c1f3b03ef56be2db
tree80ce12af795d2f72abdd5848d93895b1cee8c5f0
parent6e961aa243f223ddb704ce708056238d7c1d7e24
Merging r261258:
------------------------------------------------------------------------
r261258 | rnk | 2016-02-18 12:57:41 -0800 (Thu, 18 Feb 2016) | 14 lines

[IR] Straighten out bundle overload of IRBuilder::CreateCall

IRBuilder has two ways of putting bundle operands on calls: the default
operand bundle, and an overload of CreateCall that takes an operand
bundle list.

Previously, this overload used a default argument of None. This made it
impossible to distinguish between the case were the caller doesn't care
about bundles, and the case where the caller explicitly wants no
bundles. We behaved as if they wanted the latter behavior rather than
the former, which led to problems with simplifylibcalls and WinEH.

This change fixes it by making the parameter non-optional, so we can
distinguish these two cases.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@261282 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
test/Transforms/InstCombine/fprintf-1.ll