summaryrefslogtreecommitdiffstats
path: root/lld/wasm/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/wasm/Writer.cpp')
-rw-r--r--lld/wasm/Writer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp
index d4014d7b894..47e76748f79 100644
--- a/lld/wasm/Writer.cpp
+++ b/lld/wasm/Writer.cpp
@@ -1402,10 +1402,10 @@ void Writer::calculateInitFunctions() {
// Sort in order of priority (lowest first) so that they are called
// in the correct order.
- std::stable_sort(InitFunctions.begin(), InitFunctions.end(),
- [](const WasmInitEntry &L, const WasmInitEntry &R) {
- return L.Priority < R.Priority;
- });
+ llvm::stable_sort(InitFunctions,
+ [](const WasmInitEntry &L, const WasmInitEntry &R) {
+ return L.Priority < R.Priority;
+ });
}
void Writer::run() {
OpenPOWER on IntegriCloud