summaryrefslogtreecommitdiff
path: root/src/passes/ReorderFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/ReorderFunctions.cpp')
-rw-r--r--src/passes/ReorderFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/ReorderFunctions.cpp b/src/passes/ReorderFunctions.cpp
index b6c7a4984..6c8c55075 100644
--- a/src/passes/ReorderFunctions.cpp
+++ b/src/passes/ReorderFunctions.cpp
@@ -86,7 +86,7 @@ struct ReorderFunctions : public Pass {
[&counts](const std::unique_ptr<Function>& a,
const std::unique_ptr<Function>& b) -> bool {
if (counts[a->name] == counts[b->name]) {
- return strcmp(a->name.str, b->name.str) > 0;
+ return a->name > b->name;
}
return counts[a->name] > counts[b->name];
});