[PATCH] D45280: WebAssembly: Never write more than 32-bits for WebAssembly::OPERAND_OFFSET32

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 4 13:49:19 PDT 2018


sbc100 added a comment.

In https://reviews.llvm.org/D45280#1057520, @dschuff wrote:

> LGTM for the encoding... I hope the -1 offset wasn't being generated by the compiler though?


It does come from the compiler:

  void _start(void) {
    char *oob = (char *) -1; *oob = 0;
  }


Repository:
  rL LLVM

https://reviews.llvm.org/D45280





More information about the llvm-commits mailing list