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
This commit is contained in:
Tim Northover 2017-05-23 21:53:11 +00:00
parent 2f8db1d654
commit 8c605c0eda
1 changed files with 1 additions and 4 deletions

View File

@ -2394,12 +2394,9 @@ void SelectionDAGBuilder::visitIndirectBr(const IndirectBrInst &I) {
} }
void SelectionDAGBuilder::visitUnreachable(const UnreachableInst &I) { void SelectionDAGBuilder::visitUnreachable(const UnreachableInst &I) {
errs() << "WARNING: trap\n"; if (DAG.getTarget().Options.TrapUnreachable)
if (DAG.getTarget().Options.TrapUnreachable) {
DAG.setRoot( DAG.setRoot(
DAG.getNode(ISD::TRAP, getCurSDLoc(), MVT::Other, DAG.getRoot())); DAG.getNode(ISD::TRAP, getCurSDLoc(), MVT::Other, DAG.getRoot()));
}
} }
void SelectionDAGBuilder::visitFSub(const User &I) { void SelectionDAGBuilder::visitFSub(const User &I) {