[all-commits] [llvm/llvm-project] 3ad2fe: [Clang][CodeGen] Avoid __builtin_assume_aligned cr...

黄金橘子猫 via All-commits all-commits at lists.llvm.org
Sat Sep 3 08:26:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ad2fe913ae08ca062105731ad2da2eae825c731
      https://github.com/llvm/llvm-project/commit/3ad2fe913ae08ca062105731ad2da2eae825c731
  Author: yronglin <yronglin777 at gmail.com>
  Date:   2022-09-03 (Sat, 03 Sep 2022)

  Changed paths:
    M clang/include/clang/Basic/Builtins.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGen/catch-alignment-assumption-array.c
    M clang/test/CodeGen/catch-alignment-assumption-ignorelist.c
    M clang/test/Sema/builtin-assume-aligned.c

  Log Message:
  -----------
  [Clang][CodeGen] Avoid __builtin_assume_aligned crash when the 1st arg is array type

Avoid __builtin_assume_aligned crash when the 1st arg is array type(or string literal).

Open issue: https://github.com/llvm/llvm-project/issues/57169

Reviewed By: rjmccall

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




More information about the All-commits mailing list