[all-commits] [llvm/llvm-project] db6c3e: [flang][runtime] Make NCOPIES= argument of REPEAT ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jun 15 14:33:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db6c3ecd2c7a296c1aa1120719d9659d08965448
      https://github.com/llvm/llvm-project/commit/db6c3ecd2c7a296c1aa1120719d9659d08965448
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M flang/include/flang/Runtime/character.h
    M flang/runtime/character.cpp

  Log Message:
  -----------
  [flang][runtime] Make NCOPIES= argument of REPEAT a signed integer, & check it

NCOPIES= is currently a std::size_t in the API.  If a negative value is
used, the memory allocation will fail.  Change it to be a signed integer,
and crash with a message instead if it be negative.

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




More information about the All-commits mailing list