HomePhabricator

[flang] Minor fix in folding of reshape intrinsic (flang-compiler/f18#842)

Authored by kiranchandramohan on Nov 26 2019, 1:34 PM.

Description

[flang] Minor fix in folding of reshape intrinsic (flang-compiler/f18#842)

The standard permits source to have more elements than the
result (as specified by the SHAPE arg). While copying, ensure
that we do not copy more than the number of elements of the
result.

Original-commit: flang-compiler/f18@6b8284f4f2cff32fcf5483ea93d1d239ecdacd33
Reviewed-on: https://github.com/flang-compiler/f18/pull/842

Details

Committed
sscalponeNov 26 2019, 1:34 PM
Parents
rG477bd3c67e34: [flang] Merge pull request flang-compiler/f18#841 from flang-compiler/tskā€¦
Branches
Unknown
Tags
Unknown