[PATCH] D152841: Prevent out of range fixup encoding on AArch64

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 14:48:39 PDT 2023


efriedma added a comment.

Maybe we could add a shortcut to allow testing this sort of thing without trying to pump megabytes of data into the ostream, so we don't have to worry about the compile-time.  Might be sufficient to just add a codepath to llvm-mc to force all the output to a raw_null_ostream.

Funny side-note, while experimenting, I found that we don't emit an error if the distance is greater than 4GB.  Probably accidentally truncating an offset somewhere.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152841/new/

https://reviews.llvm.org/D152841



More information about the llvm-commits mailing list