diff options
author | Adrian Prantl <aprantl@apple.com> | 2020-03-11 10:44:15 -0700 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2020-03-11 12:43:32 -0700 |
commit | ea960371861acad11b7018a5e280ae7a41ab9c02 (patch) | |
tree | ba817be3af0f62239b9361169f3e3a8b7924d3eb /clang/lib/Lex/ModuleMap.cpp | |
parent | 1e0c540360e826d85e7f048d31895c4028e6499a (diff) | |
download | llvm-ea960371861acad11b7018a5e280ae7a41ab9c02.zip llvm-ea960371861acad11b7018a5e280ae7a41ab9c02.tar.gz llvm-ea960371861acad11b7018a5e280ae7a41ab9c02.tar.bz2 |
Add a verification mechanism to CompilerType.
Badly-written code can combine an unrelated TypeSystem and opaque type
pointer into a CompilerType. This is particularly an issue in
swift-lldb. This patch adds an assertion mechanism that catches these
kinds of mistakes early. Because this is an assertion-only code path
there is not cost for release builds.
Differential Revision: https://reviews.llvm.org/D76011
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions