[llvm] Add missing include to X86MCTargetDesc.h (PR #123320)
Stephan Hageboeck via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 02:56:06 PST 2025
https://github.com/hageboeck created https://github.com/llvm/llvm-project/pull/123320
In gcc-15, explicit includes of <cstdint> are required when fixed-size integers are used. In this file, this include only happened as a side effect of including SmallVector.h
Although llvm compiles fine, the root-project would benefit from explicitly including it here, so we can backport the patch.
Maybe interesting for @hahnjo and @vgvassilev
>From 3680371e7f5bc614085ac4e181759df4d89a9473 Mon Sep 17 00:00:00 2001
From: Stephan Hageboeck <stephan.hageboeck at cern.ch>
Date: Fri, 17 Jan 2025 11:49:49 +0100
Subject: [PATCH] Add missing include to X86MCTargetDesc.h
In gcc-15, explicit includes of <cstdint> are required when fixed-size integers are used.
In this file, this include only happened as a side effect of including SmallVector.h
---
llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
index e166b68668d9b1..0e0e13e896aeaa 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
@@ -14,6 +14,7 @@
#define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
#include "llvm/ADT/SmallVector.h"
+#include <cstdint>
#include <memory>
#include <string>
More information about the llvm-commits
mailing list