This would save cost of walking over the AST, NFC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM.
I think this was part of initial changed and I asked to make it this way, but I don't remember why.
Comment Actions
Sorry, being pedantic here... We're not saving time on parsing, but on walking over the AST :-)
Comment Actions
I think it was just to have a single place that returns. I think it's OK to early return in this case, it's a good optimization.