Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Sema/SemaCoroutine.cpp | ||
---|---|---|
451 | Don't desugar the type; instead, use AdjRetType->isBooleanType() || AdjRetType->isVoidType() here. You can also delete the getUnqualifiedType() call above if you do this, and just use RetType here, since ->isBooleanType() on const bool returns true. |
lib/Sema/SemaCoroutine.cpp | ||
---|---|---|
451 | Cool! Much shorter and prettier. Thank you! |
test/SemaCXX/coroutines.cpp | ||
---|---|---|
169 | maybe change the comment to something more meaningful, or remove it. |
test/SemaCXX/coroutines.cpp | ||
---|---|---|
169 | Sure thing. I'll remove the comment. |
Don't desugar the type; instead, use AdjRetType->isBooleanType() || AdjRetType->isVoidType() here. You can also delete the getUnqualifiedType() call above if you do this, and just use RetType here, since ->isBooleanType() on const bool returns true.