This allows a declaration of an Address to be invalid by default,
allowing it to be added to e.g. a DenseMap. Will followup with a
cleanup.
Details
Details
- Reviewers
rjmccall
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/Address.h | ||
---|---|---|
31 | It would be nice to assert(isValid()) here but that's not how Address is used; you can pass in a nullptr as the first argument. |
Comment Actions
You can still use a type without a default constructor in a DenseMap; you just have to use insert instead of dict[key] = ....
It would be nice to assert(isValid()) here but that's not how Address is used; you can pass in a nullptr as the first argument.