diff options
author | Eric Schweitz <eschweitz@nvidia.com> | 2021-02-05 14:40:10 -0800 |
---|---|---|
committer | Eric Schweitz <eschweitz@nvidia.com> | 2021-02-08 08:20:04 -0800 |
commit | 7e20a413483307c2f7df327074bc0b687335f3b1 (patch) | |
tree | c16bedd82d89b76f3dadb36772181f680f03294a /flang/lib/Lower/ConvertType.cpp | |
parent | 6b1e2fc89327a64c9300d543e00f12435c32dfcf (diff) | |
download | llvm-7e20a413483307c2f7df327074bc0b687335f3b1.zip llvm-7e20a413483307c2f7df327074bc0b687335f3b1.tar.gz llvm-7e20a413483307c2f7df327074bc0b687335f3b1.tar.bz2 |
[flang][fir] Update FIR's character type.
Upstream the changes made to the !fir.char type.
https://github.com/flang-compiler/f18-llvm-project/pull/269
https://github.com/flang-compiler/f18-llvm-project/pull/557
Author: Eric Schweitz, Jean Perier
Differention Revision: https://reviews.llvm.org/D96183
Diffstat (limited to 'flang/lib/Lower/ConvertType.cpp')
-rw-r--r-- | flang/lib/Lower/ConvertType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Lower/ConvertType.cpp b/flang/lib/Lower/ConvertType.cpp index 917de78..43c1bb0 100644 --- a/flang/lib/Lower/ConvertType.cpp +++ b/flang/lib/Lower/ConvertType.cpp @@ -157,7 +157,7 @@ genFIRType<Fortran::common::TypeCategory::Character>(mlir::MLIRContext *context, int KIND) { if (Fortran::evaluate::IsValidKindOfIntrinsicType( Fortran::common::TypeCategory::Character, KIND)) - return fir::CharacterType::get(context, KIND); + return fir::CharacterType::get(context, KIND, 1); return {}; } |