[all-commits] [llvm/llvm-project] 3a9625: [Clang][OpenMP] Avoid using `IgnoreImpCasts` if po...

Shilei Tian via All-commits all-commits at lists.llvm.org
Thu Jun 2 14:45:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a96256b7e292de15ad57438202aeea4818956ba
      https://github.com/llvm/llvm-project/commit/3a96256b7e292de15ad57438202aeea4818956ba
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2022-06-02 (Thu, 02 Jun 2022)

  Changed paths:
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/Sema/SemaOpenMP.cpp

  Log Message:
  -----------
  [Clang][OpenMP] Avoid using `IgnoreImpCasts` if possible

This patch removes all `IgnoreImpCasts` in Sema, and only uses it if necessary. If the expression is not of the same type as the pointer value, a cast is inserted.

Reviewed By: ABataev

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




More information about the All-commits mailing list