aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2020-03-11 10:44:15 -0700
committerAdrian Prantl <aprantl@apple.com>2020-03-11 12:43:32 -0700
commitea960371861acad11b7018a5e280ae7a41ab9c02 (patch)
treeba817be3af0f62239b9361169f3e3a8b7924d3eb /clang/lib/Lex/ModuleMap.cpp
parent1e0c540360e826d85e7f048d31895c4028e6499a (diff)
downloadllvm-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