aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2019-12-16 17:19:16 -0500
committerBrian Gesiak <modocache@gmail.com>2019-12-16 17:43:04 -0500
commit376cf43729c8025eecbd2969522c5687f2a3919f (patch)
treef5bfa80912f5d510b974579ebadda09e8767d85d /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent3fbe518a102a344abbd837e364a404c0c695d183 (diff)
downloadllvm-376cf43729c8025eecbd2969522c5687f2a3919f.zip
llvm-376cf43729c8025eecbd2969522c5687f2a3919f.tar.gz
llvm-376cf43729c8025eecbd2969522c5687f2a3919f.tar.bz2
[coroutines][PR41909] Generalize fix from D62550
Summary: In https://reviews.llvm.org/D62550 @rsmith pointed out that there are many situations in which a coroutine body statement may be transformed/rebuilt as part of a template instantiation, and my naive check whether the coroutine was a generic lambda was insufficient. This is indeed true, as I've learned by reading more of the TreeTransform code. Most transformations are written in a way that doesn't assume the resulting types are not dependent types. So the assertion in 'TransformCoroutineBodyStmt', that the promise type must no longer be dependent, is out of place. This patch removes the assertion, spruces up some code comments, and adds a test that would have failed with my naive check from https://reviews.llvm.org/D62550. Reviewers: GorNishanov, rsmith, lewissbaker Reviewed By: rsmith Subscribers: junparser, EricWF, rsmith, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70579
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions