[flang-commits] [PATCH] D83352: [flang] Fix CHARACTER length folding problem

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jul 7 15:34:11 PDT 2020


klausler created this revision.
klausler added reviewers: tskeith, sscalpone.
klausler added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83352

Files:
  flang/include/flang/Evaluate/type.h
  flang/lib/Evaluate/fold-integer.cpp
  flang/lib/Evaluate/shape.cpp
  flang/lib/Evaluate/type.cpp
  flang/lib/Evaluate/variable.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83352.276239.patch
Type: text/x-patch
Size: 5587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200707/6259aef7/attachment-0001.bin>


More information about the flang-commits mailing list