We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54014e4 commit 65b67cbCopy full SHA for 65b67cb
flang/lib/Lower/CharacterExpr.cpp
@@ -35,11 +35,8 @@ static fir::CharacterType getCharacterType(const fir::CharBoxValue &box) {
35
}
36
37
static bool needToMaterialize(const fir::CharBoxValue &box) {
38
- auto buffTy = box.getBuffer().getType();
39
- if (auto seqTy = buffTy.dyn_cast<fir::SequenceType>())
40
- if (seqTy.getShape().size() == 1)
41
- buffTy = seqTy.getEleTy();
42
- return buffTy.isa<fir::CharacterType>();
+ return box.getBuffer().getType().isa<fir::SequenceType>() ||
+ box.getBuffer().getType().isa<fir::CharacterType>();
43
44
45
static std::optional<fir::SequenceType::Extent>
0 commit comments