[all-commits] [llvm/llvm-project] b026ce: [MC] Add Subtarget for MAsmParser call to emitCode...

Peter Smith via All-commits all-commits at lists.llvm.org
Wed Sep 8 05:29:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b026ce9c8a81a3be4cd2212a97e8b5d609631334
      https://github.com/llvm/llvm-project/commit/b026ce9c8a81a3be4cd2212a97e8b5d609631334
  Author: Peter Smith <peter.smith at arm.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/MasmParser.cpp

  Log Message:
  -----------
  [MC] Add Subtarget for MAsmParser call to emitCodeAlignment

The call to emitCodeAlignment was missing a STI which is required
after D45962.

emitCodeAlignment has a default parameter of 0 for MaxBytesToEmit.
Explicitly passing 0 here was interpreted as as nullptr for the STI.
This could possibly be avoided by taking STI as a const reference in
emitCodeAlignment.

Differential Revision: https://reviews.llvm.org/D109425




More information about the All-commits mailing list