aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
diff options
context:
space:
mode:
authorPete Steinfeld <psteinfeld@nvidia.com>2020-07-22 11:33:35 -0700
committerPete Steinfeld <psteinfeld@nvidia.com>2020-07-22 12:21:58 -0700
commitf72106e2a35b12ef4bb265e755a6ee33a576c768 (patch)
treeab275f1cf1ffb6d8d66c475bb352520d90f09577 /llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
parentbcbc6117b5d944bca8519dd34131cda1e83789fe (diff)
downloadllvm-f72106e2a35b12ef4bb265e755a6ee33a576c768.zip
llvm-f72106e2a35b12ef4bb265e755a6ee33a576c768.tar.gz
llvm-f72106e2a35b12ef4bb265e755a6ee33a576c768.tar.bz2
[flang] Fix an assert when RESHAPE() is called on empty strings
Summary: When a constant array of empty strings goes through contant folding, the result is something that contains no bytes. If this array is passed to the intrinsic function `RESHAPE()`, we were not handling things correctly. I fixed this by checking for an empty destination when calling the function `CopyFrom()` on an array of strings. I also added a test with a couple of different examples that trigger the problem. Reviewers: klausler, tskeith, DavidTruby Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D84352
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp')
0 files changed, 0 insertions, 0 deletions