summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2016-09-09 21:18:47 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2016-09-09 21:18:47 +0000
commit7d7b4b4014c19149e710368d20955cdc2a872e3b (patch)
tree927728b1a51a959aa83455c8c6d2dd4002638a99 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent432d3d2619be3c9c9bf7c727cffc68f11e18fd43 (diff)
downloadbcm5719-llvm-7d7b4b4014c19149e710368d20955cdc2a872e3b.tar.gz
bcm5719-llvm-7d7b4b4014c19149e710368d20955cdc2a872e3b.zip
Create phi nodes for swifterror values at the end of the phi instructions list
ISel makes assumption about the order of phi nodes. rdar://28190150 llvm-svn: 281095
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index b9c4eb3f43b..9d06a4f64be 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1253,7 +1253,7 @@ static void mergeIncomingSwiftErrors(FunctionLoweringInfo *FuncInfo,
FuncInfo->SwiftErrorMap[FuncInfo->MBB].push_back(VReg);
MachineInstrBuilder SwiftErrorPHI = BuildMI(*FuncInfo->MBB,
- FuncInfo->MBB->begin(), SDB->getCurDebugLoc(),
+ FuncInfo->InsertPt, SDB->getCurDebugLoc(),
TII->get(TargetOpcode::PHI), VReg);
for (const_pred_iterator PI = pred_begin(LLVMBB), PE = pred_end(LLVMBB);
PI != PE; ++PI) {
OpenPOWER on IntegriCloud