A previous change (53211a) had updated the argument parsing to handle
large max memories, but 4294967296 would still wrap to zero after the
options were parsed. This change updates the configuration to use a
64-bit integer to store the max memory to avoid that overflow.
Details
Details
- Reviewers
sbc100 - Commits
- rGc496d84b4f31: [lld][WebAssembly] Handle 4gb max memories
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hmm, that seems unnecessary because the user already has to explicitly opt in to their preferred max memory size. I should probably add validation that the max is no more than 4gb for now, though.
lld/wasm/Writer.cpp | ||
---|---|---|
290 | No, we want to allow exactly 2^32 but nothing more. The highest possible index into a 4GB memory is 4294967295, but the size is still 4GB exactly. |
clang-format-diff not found in user's PATH; not linting file.