Skip to content

Commit 395f834

Browse files
hageboeckschilkp
authored andcommitted
Add missing include to X86MCTargetDesc.h (llvm#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
1 parent f5d2ffc commit 395f834

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
1414
#define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
1515

16+
#include "llvm/ADT/SmallVector.h"
17+
#include <cstdint>
1618
#include <memory>
1719
#include <string>
1820

0 commit comments

Comments
 (0)