[all-commits] [llvm/llvm-project] 2e7311: [Sema] Use isSVESizelessBuiltinType instead of isS...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Feb 27 09:19:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e7311170201e07e5e067e397aed8fa482d2fb8b
      https://github.com/llvm/llvm-project/commit/2e7311170201e07e5e067e397aed8fa482d2fb8b
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/Sema/attr-riscv-rvv-vector-bits.c

  Log Message:
  -----------
  [Sema] Use isSVESizelessBuiltinType instead of isSizelessBuiltinType to prevent crashing on RISC-V.

These 2 spots are protecting calls to SVE specific functions. If RISC-V
sizeless types end up in there we trigger assertions.

Use the more specific isSVESizelessBuiltinType() to avoid letting
RISC-V vectors through.

Reviewed By: asb, c-rhodes

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




More information about the All-commits mailing list