Partial progress towards replacing uses of CreateElementBitCast, as it
no longer does what its name suggests.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks pretty straightforward.
clang/lib/CodeGen/CGClass.cpp | ||
---|---|---|
1000 | Just something to think about. |
clang/lib/CodeGen/CGClass.cpp | ||
---|---|---|
1000 | I see. I'm inclined to drop the unnecessary calls to withElementType. |
clang/lib/CodeGen/CGClass.cpp | ||
---|---|---|
1000 | Just to be clear: I'm not suggesting to do it in this review. |
Just something to think about.
CreateMemCpy, CreateStore (but not CreateLoad) and probably some other methods ignore the element type. I don't know what should we do: drop unnecessary calls to withElementType or add asserts to Create* methods that the element type is expected. Otherwise it is just dead code.