mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
c5b9728289
This commit further centralizes the creation of allocas + ptrtoint. The creation of these pair of instructions is problematic when the size of a pointer in the input and target architecture differ. In fact, in such cases, LLVM turns trunc into masking the integer to suppresse the high bits. This results in problematic code. This commit introduces an assumption that ensures LLVM does not do that.