Skip to content

Commit 662a96b

Browse files
fsfodvgvassilev
authored andcommitted
Move extern template definition for NoopLattice's Any::TypeId
1 parent 7f3ab12 commit 662a96b

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,12 @@
2828
#include "clang/Analysis/FlowSensitive/MatchSwitch.h"
2929
#include "clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h"
3030
#include "clang/Analysis/FlowSensitive/WatchedLiteralsSolver.h"
31-
#include "clang/Support/Compiler.h"
3231
#include "llvm/ADT/STLExtras.h"
3332
#include "llvm/ADT/STLFunctionalExtras.h"
3433
#include "llvm/ADT/SmallVector.h"
3534
#include "llvm/Support/Errc.h"
3635
#include "llvm/Support/Error.h"
3736

38-
namespace clang {
39-
namespace dataflow {
40-
class NoopLattice;
41-
}
42-
}
43-
44-
namespace llvm {
45-
extern template struct CLANG_TEMPLATE_ABI
46-
Any::TypeId<clang::dataflow::NoopLattice>;
47-
};
48-
4937
namespace clang {
5038
namespace dataflow {
5139

clang/include/clang/Analysis/FlowSensitive/NoopLattice.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_NOOP_LATTICE_H
1515

1616
#include "clang/Analysis/FlowSensitive/DataflowLattice.h"
17+
#include "llvm/ADT/Any.h"
1718
#include <ostream>
1819

1920
namespace clang {
@@ -38,4 +39,9 @@ inline std::ostream &operator<<(std::ostream &OS, const NoopLattice &) {
3839
} // namespace dataflow
3940
} // namespace clang
4041

42+
namespace llvm {
43+
extern template struct CLANG_TEMPLATE_ABI
44+
Any::TypeId<clang::dataflow::NoopLattice>;
45+
};
46+
4147
#endif // LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_NOOP_LATTICE_H

0 commit comments

Comments
 (0)