-
Notifications
You must be signed in to change notification settings - Fork 179
Closed
Description
The documentation for CIRGenTypes::convertTypeForMem states that it treats bool specially:
/// Convert type T into an mlir::Type. This differs from convertType in that
/// it is used to convert to the memory representation for a type. For
/// example, the scalar representation for bool is i1, but the memory
/// representation is usually i8 or i32, depending on the target.
But the implementation of CIRGenTypes::convertTypeForMem in CIRGenTypes.cpp doesn't check for bool or do anything special for bool.
Either the documentation or the implementation is wrong. I don't know which. One of them needs to be fixed.
Metadata
Metadata
Assignees
Labels
No labels