From 8c605c0edaa909f44e6e4c753eb630035de61857 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Tue, 23 May 2017 21:53:11 +0000 Subject: [PATCH] Revert LLVM changes for "Sema: allow imaginary constants via GNU extension if UDL overloads not present." The changes accidentally crept into a Clang commit I was making. llvm-svn: 303697 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 4c7d980a6a9b..57d340c41c39 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -2394,12 +2394,9 @@ void SelectionDAGBuilder::visitIndirectBr(const IndirectBrInst &I) { } void SelectionDAGBuilder::visitUnreachable(const UnreachableInst &I) { - errs() << "WARNING: trap\n"; - if (DAG.getTarget().Options.TrapUnreachable) { + if (DAG.getTarget().Options.TrapUnreachable) DAG.setRoot( DAG.getNode(ISD::TRAP, getCurSDLoc(), MVT::Other, DAG.getRoot())); - - } } void SelectionDAGBuilder::visitFSub(const User &I) {