[all-commits] [llvm/llvm-project] 3ef113: Fix DeferredDiagnosticsEmitter for bug#45987

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu May 21 08:09:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ef11346f391e6e3da0cfa25f9f7dac22771438e
      https://github.com/llvm/llvm-project/commit/3ef11346f391e6e3da0cfa25f9f7dac22771438e
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M clang/lib/Sema/Sema.cpp
    A clang/test/OpenMP/deferred-diags.cpp

  Log Message:
  -----------
  Fix DeferredDiagnosticsEmitter for bug#45987

InOMPDeviceContext may be greater than 1. It needs to be clamp to 0 and 1
to be used as index for DoneMap.




More information about the All-commits mailing list