[all-commits] [llvm/llvm-project] 8f386f: [ms-inline asm] Add error check for `getAsInteger`

Phoebe Wang via All-commits all-commits at lists.llvm.org
Mon May 29 20:21:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f386ff69ab8e012c1716ae05e70fd5288435835
      https://github.com/llvm/llvm-project/commit/8f386ff69ab8e012c1716ae05e70fd5288435835
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp

  Log Message:
  -----------
  [ms-inline asm] Add error check for `getAsInteger`

.Imm can get lexed as a real, but a real doesn't equal to .Imm, e.g.,
2.5 or .123e+8. We should report error for it rather than silently ignore.

Reviewed By: skan

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




More information about the All-commits mailing list