aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2020-07-30 09:19:58 +0200
committerHaojian Wu <hokein.wu@gmail.com>2020-07-30 09:25:15 +0200
commit73c12bd8ff1a9cd8375a357ea06f171e127ec1b8 (patch)
tree64c0caa21f903e994f25642a2ae7cabb9f1e3bb4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent647e9a54c758a6fdd85a569f019f00a653b2bc40 (diff)
downloadllvm-73c12bd8ff1a9cd8375a357ea06f171e127ec1b8.zip
llvm-73c12bd8ff1a9cd8375a357ea06f171e127ec1b8.tar.gz
llvm-73c12bd8ff1a9cd8375a357ea06f171e127ec1b8.tar.bz2
[Concepts] Fix a deserialization crash.
`TemplateTypeParmDecl::hasTypeConstraint` is not a safe guard for checking `TemplateTypeParmDecl::getTypeConstraint()` result is null. in somecases (e.g. implicit deduction guide templates synthesized from the constructor, immediately-declared constraint is not formed because of an error), hasTypeConstraint returns false, and getTypeConstraint returns a nullptr. Fix https://bugs.llvm.org/show_bug.cgi?id=46790 Differential Revision: https://reviews.llvm.org/D84455
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions