[all-commits] [llvm/llvm-project] 8f0f9e: [flang] Fix CHARACTER length folding problem
Peter Klausler via All-commits
all-commits at lists.llvm.org
Tue Jul 7 16:39:25 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8f0f9eaddf9ea8cbab418a64fb6557928b3c907a
https://github.com/llvm/llvm-project/commit/8f0f9eaddf9ea8cbab418a64fb6557928b3c907a
Author: peter klausler <pklausler at nvidia.com>
Date: 2020-07-07 (Tue, 07 Jul 2020)
Changed paths:
M flang/include/flang/Evaluate/type.h
M flang/lib/Evaluate/fold-integer.cpp
M flang/lib/Evaluate/shape.cpp
M flang/lib/Evaluate/type.cpp
M flang/lib/Evaluate/variable.cpp
Log Message:
-----------
[flang] Fix CHARACTER length folding problem
Do not rewrite LEN(x) or x%len to the expression that specifies
the length of x when that length is not a constant expression.
Its value may have changed since the value of the expression was
first captured in the definition of the object.
Reviewed By: tskeith, sscalpone
Differential Revision: https://reviews.llvm.org/D83352
More information about the All-commits
mailing list