[all-commits] [llvm/llvm-project] 2ebda4: [Clang][OpenMP] Bail out early if `Scope` is nullp...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Jan 20 11:40:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ebda47619d7e8b72d460a955de4f398f637489f
      https://github.com/llvm/llvm-project/commit/2ebda47619d7e8b72d460a955de4f398f637489f
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/test/OpenMP/bug59944.c

  Log Message:
  -----------
  [Clang][OpenMP] Bail out early if `Scope` is nullptr in case of any crash

When there is any compile error, clang still tries to compile as many code as
possible, therefore `Scope` can be `nullptr` here. However, we didn't check it
beforehand, causing compiler crash.

Fix #59944.

Reviewed By: ABataev

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




More information about the All-commits mailing list