Skip to content

Commit 76a2491

Browse files
klauslermemfrob
authored andcommitted
[flang] Provide access to constant character array data
Allow direct access to constant character array data (for creating a hash ID of a constant). Differential Revision: https://reviews.llvm.org/D101208
1 parent 5099b78 commit 76a2491

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/include/flang/Evaluate/constant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ class Constant<Type<TypeCategory::Character, KIND>> : public ConstantBounds {
168168
bool empty() const;
169169
std::size_t size() const;
170170

171+
const Scalar<Result> &values() const { return values_; }
171172
ConstantSubscript LEN() const { return length_; }
172173

173174
std::optional<Scalar<Result>> GetScalarValue() const {

0 commit comments

Comments
 (0)