Depends on D125709
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Why not replace all getAs?
I suppose you picked conditions because isa can have variadic parameters. If we are about to keep getAs then why not replace only those occurrences where we see the benefit of the variadic isa?
Comment Actions
That's a massive change. I actually experimented with it and I see no advantage with that.
I suppose you picked conditions because isa can have variadic parameters. If we are about to keep getAs then why not replace only those occurrences where we see the benefit of the variadic isa?
I believe it reads more naturally. getAs<> should be used only if we care about the value and don't know if it has one.