summaryrefslogtreecommitdiffstats
path: root/lld/lib/Passes/LayoutPass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Passes/LayoutPass.cpp')
-rw-r--r--lld/lib/Passes/LayoutPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Passes/LayoutPass.cpp b/lld/lib/Passes/LayoutPass.cpp
index e060f9485db..13fcedea0f6 100644
--- a/lld/lib/Passes/LayoutPass.cpp
+++ b/lld/lib/Passes/LayoutPass.cpp
@@ -433,7 +433,7 @@ void showCycleDetectedError(AtomToAtomT &followOnNexts,
}
atom = followOnNexts[atom];
} while (atom != start);
- llvm_unreachable("Cycle detected");
+ llvm::report_fatal_error("Cycle detected");
}
/// Exit if there's a cycle in a followon chain reachable from the
OpenPOWER on IntegriCloud