Details
Diff Detail
Event Timeline
lib/Transforms/Scalar/ScalarReplAggregates.cpp | ||
---|---|---|
2237 | OtherPtr is ensured above to have the type PointerType::get(AI->getAllocatedType(), AddrSpace). | |
2253–2254 | Wrong type, NewElts is an array of AllocaInst*, and I believe EltPtr is assigned something that is not an AllocaInst* (or used to, looking again at it doesn't seem to be the case atm). | |
2486 | See previous comment. In this case, SrcField *does* get assigned, so I can't change its type to AllocaInst*. |
Thanks for all the work/patches posted here. Will be getting to the reviews as quick as I can.
This one looks good, please commit!
lib/Transforms/Scalar/ScalarReplAggregates.cpp | ||
---|---|---|
2237 | Could throw in an assert to that effect if you like | |
2253–2254 | Feel free to correct the type (since, as you say, it's no longer reused for other things) & reuse it if you like |
Are you sure this is right? I don't think we can assume that AI and OtherPtr have the same type.