[all-commits] [llvm/llvm-project] 247ecc: [AsmParser] Check that addrspace fits within 24 bits

Luke Lau via All-commits all-commits at lists.llvm.org
Fri Dec 9 01:54:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 247ecc99e43130adbcca6fb604da3f336c839d16
      https://github.com/llvm/llvm-project/commit/247ecc99e43130adbcca6fb604da3f336c839d16
  Author: Luke Lau <luke at igalia.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M llvm/lib/AsmParser/LLParser.cpp
    A llvm/test/Assembler/invalid-addrspace.ll

  Log Message:
  -----------
  [AsmParser] Check that addrspace fits within 24 bits

Address spaces equal or larger than 1 << 24 don't fit and produce an
assertion during debug builds, or worse in release. This causes an error
to be reported during parsing instead.

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




More information about the All-commits mailing list