[all-commits] [llvm/llvm-project] 9520b6: [flang] Fix a crash when cosubscript list is empty
Pete Steinfeld via All-commits
all-commits at lists.llvm.org
Wed Jul 8 10:12:06 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9520b6c8ab63061e1734deef8614eaa60f704dc9
https://github.com/llvm/llvm-project/commit/9520b6c8ab63061e1734deef8614eaa60f704dc9
Author: Pete Steinfeld <psteinfeld at nvidia.com>
Date: 2020-07-08 (Wed, 08 Jul 2020)
Changed paths:
M flang/lib/Semantics/expression.cpp
M flang/test/Semantics/resolve94.f90
Log Message:
-----------
[flang] Fix a crash when cosubscript list is empty
Summary:
When there are errors in the evaluation of every cosubscript expression in a
coindexed object, the compiler would crash. I fixed this by just checking to
see if there were errors in the evaluation of the cosubscripts before
constructing the `DataRef` for the coindexed object.
Reviewers: klausler, tskeith, DavidTruby
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D83410
More information about the All-commits
mailing list