Skip to content

Commit

Permalink
[Target] Include bitset (NFC)
Browse files Browse the repository at this point in the history
These files are relying on the transitive include of <bitset> from
GIMatchTableExecutor.h, which doesn't actually use std::bitset.
  • Loading branch information
kazutakahirata committed Dec 10, 2023
1 parent a164293 commit b85f1f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/ARM/ARMSubtarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/TargetParser/Triple.h"
#include <bitset>
#include <memory>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/RISCV/RISCVSubtarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/Target/TargetMachine.h"
#include <bitset>

#define GET_SUBTARGETINFO_HEADER
#include "RISCVGenSubtargetInfo.inc"
Expand Down

0 comments on commit b85f1f9

Please sign in to comment.