[flang-commits] [flang] 81c99c5 - [fir] Fixup comment. NFC

Diana Picus via flang-commits flang-commits at lists.llvm.org
Wed Nov 10 04:50:02 PST 2021


Author: Diana Picus
Date: 2021-11-10T12:49:31Z
New Revision: 81c99c5404c1aa92eadb7fb93dbeaae7bfaa5195

URL: https://github.com/llvm/llvm-project/commit/81c99c5404c1aa92eadb7fb93dbeaae7bfaa5195
DIFF: https://github.com/llvm/llvm-project/commit/81c99c5404c1aa92eadb7fb93dbeaae7bfaa5195.diff

LOG: [fir] Fixup comment. NFC

Fixed comment as requested in https://reviews.llvm.org/D113560.

Added: 
    

Modified: 
    flang/lib/Optimizer/CodeGen/TypeConverter.h

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/TypeConverter.h b/flang/lib/Optimizer/CodeGen/TypeConverter.h
index b73ece78b631..9e3a9261ec37 100644
--- a/flang/lib/Optimizer/CodeGen/TypeConverter.h
+++ b/flang/lib/Optimizer/CodeGen/TypeConverter.h
@@ -156,7 +156,8 @@ class LLVMTypeConverter : public mlir::LLVMTypeConverter {
     return kindMapping.getCharacterBitsize(charTy.getFKind());
   }
 
-  // fir.char<n>  -->  llvm<"ix*">   where ix is scaled by kind mapping
+  // fir.char<k,?>  -->  llvm<"ix">          where ix is scaled by kind mapping
+  // fir.char<k,n>  -->  llvm.array<n x "ix">
   mlir::Type convertCharType(fir::CharacterType charTy) {
     auto iTy = mlir::IntegerType::get(&getContext(), characterBitsize(charTy));
     if (charTy.getLen() == fir::CharacterType::unknownLen())


        


More information about the flang-commits mailing list