RESOLVED DUPLICATE of bug 163865164806
tryAppendLea doesn't consider that something representable as an int32_t might actually be a Const64Value
https://bugs.webkit.org/show_bug.cgi?id=164806
Summary tryAppendLea doesn't consider that something representable as an int32_t migh...
Saam Barati
Reported 2016-11-15 17:11:51 PST
There is code like this: ``` if (value->child(1)->isRepresentableAs<int32_t>() && canBeInternal(value->child(0)) && value->child(0)->opcode() == Add) { innerAdd = value->child(0); offset = value->child(1)->asInt32(); value = value->child(0); } ``` It calls asInt32(). It should be calling static_cast<int32_t>(asInt()).
Attachments
Saam Barati
Comment 1 2016-11-28 12:48:36 PST
I'm doing this in the other bug where I found this. *** This bug has been marked as a duplicate of bug 163865 ***
Note You need to log in before you can comment on or make changes to this bug.