[all-commits] [llvm/llvm-project] bea53e: The device expression must evaluate to a non-negat...

Harshil Jani via All-commits all-commits at lists.llvm.org
Sun Feb 13 03:22:08 PST 2022

  Branch: refs/heads/arcpatch-D119141
  Home:   https://github.com/llvm/llvm-project
  Commit: bea53eead1de84a28affc6a7cbf88f87a258fed4
  Author: Harshil Jain <harshiljani2002 at gmail.com>
  Date:   2022-02-13 (Sun, 13 Feb 2022)

  Changed paths:
    M flang/lib/Semantics/check-directive-structure.h
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/test/Semantics/omp-clause-validity01.f90
    M flang/test/Semantics/omp-device-constructs.f90

  Log Message:
  The device expression must evaluate to a non-negative integer value.

Device clause when it occurs with **target enter data** and **target exit data** must be declared with some non negative value. So some changes were made to evaluate the device clause argument to non negative value and throw the expected error when it takes negative value as argument.

Reviewed By: clementval

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

More information about the All-commits mailing list