Skip to content

Commit d336c45

Browse files
committed
Fix missing export of Any::TypeId for clang::dataflow::NoopLattice
1 parent 5856e1c commit d336c45

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,24 @@
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"
3132
#include "llvm/ADT/STLExtras.h"
3233
#include "llvm/ADT/STLFunctionalExtras.h"
3334
#include "llvm/ADT/SmallVector.h"
3435
#include "llvm/Support/Errc.h"
3536
#include "llvm/Support/Error.h"
3637

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+
3749
namespace clang {
3850
namespace dataflow {
3951

clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,24 @@
3030
#include "clang/Analysis/FlowSensitive/Transfer.h"
3131
#include "clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h"
3232
#include "clang/Analysis/FlowSensitive/Value.h"
33+
#include "clang/Support/Compiler.h"
3334
#include "llvm/ADT/ArrayRef.h"
3435
#include "llvm/ADT/STLExtras.h"
3536
#include "llvm/Support/Debug.h"
3637
#include "llvm/Support/Error.h"
3738

3839
#define DEBUG_TYPE "clang-dataflow"
3940

41+
namespace clang {
42+
namespace dataflow {
43+
class NoopLattice;
44+
}
45+
} // namespace clang
46+
47+
namespace llvm {
48+
template struct CLANG_EXPORT_TEMPLATE Any::TypeId<clang::dataflow::NoopLattice>;
49+
}
50+
4051
namespace clang {
4152
namespace dataflow {
4253

0 commit comments

Comments
 (0)