Skip to content

Commit 3281833

Browse files
akyrtzibenlangmuir
authored andcommitted
Fix build errors with a LLVM_ENABLE_MODULES=ON build (llvm#107654)
The errors fixed were: * llvm-project/llvm/include/llvm/Analysis/SyntheticCountsUtils.h:33:22: error: missing '#include <__fwd/vector.h>'; default argument of 'vector' must be defined before it is used * llvm-project/clang/include/clang/Tooling/Inclusions/StandardLibrary.h:41:15: error: missing '#include <vector>'; 'vector' must be declared before it is used * llvm-project/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h:83:3: error: missing '#include "llvm/ADT/PostOrderIterator.h"'; 'ReversePostOrderTraversal' must be declared before it is used (cherry picked from commit 9a84afe)
1 parent 6956cf6 commit 3281833

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

clang/include/clang/Tooling/Inclusions/StandardLibrary.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "llvm/Support/raw_ostream.h"
2222
#include <optional>
2323
#include <string>
24+
#include <vector>
2425

2526
namespace clang {
2627
class Decl;

llvm/include/llvm/Analysis/SyntheticCountsUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "llvm/ADT/STLFunctionalExtras.h"
1717
#include "llvm/Analysis/CallGraph.h"
1818
#include "llvm/Support/ScaledNumber.h"
19+
#include <vector>
1920

2021
namespace llvm {
2122

llvm/include/llvm/Transforms/InstCombine/InstCombiner.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef LLVM_TRANSFORMS_INSTCOMBINE_INSTCOMBINER_H
1919
#define LLVM_TRANSFORMS_INSTCOMBINE_INSTCOMBINER_H
2020

21+
#include "llvm/ADT/PostOrderIterator.h"
2122
#include "llvm/Analysis/DomConditionCache.h"
2223
#include "llvm/Analysis/InstructionSimplify.h"
2324
#include "llvm/Analysis/TargetFolder.h"

0 commit comments

Comments
 (0)