Added missing <algorithm> header to fix compiler error. (#4396)

When compiling today, I had this error on Arch Linux x86-64 due to the
missing <algorithm> header.
<img width="1952" height="1079" alt="Screenshot from 2026-08-27
22-53-33"
src="https://github.com/user-attachments/assets/c0101a23-ac2a-40a5-a1b9-b1e926e600a7"
/>

Adding the header fixes it.

---------

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
This commit is contained in:
Jordan
2026-09-01 04:52:59 +02:00
committed by GitHub
parent 91e8864a89
commit 65fc564c16
5 changed files with 10 additions and 9 deletions
+3 -3
View File
@@ -1,3 +1,4 @@
#include <algorithm>
#include <cstdio>
#include "emitter_test_helpers.h"
@@ -6,6 +7,7 @@
#include "common/link_types.h"
#include "common/type_system/TypeSystem.h"
#include "capstone/arm.h"
#include "goalc/compiler/IR.h"
#include "goalc/debugger/DebugInfo.h"
#include "goalc/emitter/CodeTester.h"
@@ -16,10 +18,8 @@
#include "goalc/regalloc/Allocator.h"
#include "goalc/regalloc/Allocator_v2.h"
#include "gtest/gtest.h"
#include <capstone/arm.h>
#include <fmt/base.h>
#include <fmt/format.h>
#include "fmt/base.h"
#include "fmt/format.h"
using namespace emitter;