aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2021-03-25 14:38:35 +0000
committerNathan James <n.james93@hotmail.co.uk>2021-03-25 14:38:37 +0000
commit02d7ef3181dd6a043a8ad16d747353dd02cbb5ef (patch)
tree51e09a52dc3e5381f8c96ea4ba8f150f74e41650 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent8fbfc92a5cef5e709ca47742e7bf11035607abcc (diff)
downloadllvm-02d7ef3181dd6a043a8ad16d747353dd02cbb5ef.zip
llvm-02d7ef3181dd6a043a8ad16d747353dd02cbb5ef.tar.gz
llvm-02d7ef3181dd6a043a8ad16d747353dd02cbb5ef.tar.bz2
[clang-tidy] Fix mpi checks when running multiple TUs per clang-tidy process
Both the mpi-type-mismatch and mpi-buffer-deref check make use of a static MPIFunctionClassifier object. This causes issue as the classifier is initialized with the first ASTContext that produces a match. If the check is enabled on multiple translation units in a single clang-tidy process, this classifier won't be reinitialized for each TU. I'm not an expert in the MPIFunctionClassifier but I'd imagine this is a source of UB. It is suspected that this bug may result in the crash caused here: https://bugs.llvm.org/show_bug.cgi?id=48985. However even if not the case, this should still be addressed. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D98275
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions