stripPointerCast is not reliably returning the value that's being type-casted. Instead it may look further at function attributes to further propagate the value. Instead of relying on stripPOintercast, the more reliable solution is to directly use the pointer to the promoted direct call.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 10905 Build 10905: arc lint + arc unit
Event Timeline
Comment Actions
Thanks.
test/Transforms/SampleProfile/indirect-call.ll | ||
---|---|---|
100 | Updated the comment to make it clearer. Please let me know if that clarifies the question. |
test/Transforms/SampleProfile/indirect-call.ll | ||
---|---|---|
100 | Ok thanks. |
Suggest adding a comment above here about what CastInst vs NewInst are for clarity.