Skip to content

Commit

Permalink
[CIR] fix getTypeSizeInBits with fp80 and fp128
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuHyA committed Nov 5, 2024
1 parent fca6e2c commit 3f170be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CIR/Dialect/IR/CIRTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ const llvm::fltSemantics &FP80Type::getFloatSemantics() const {
llvm::TypeSize
FP80Type::getTypeSizeInBits(const mlir::DataLayout &dataLayout,
mlir::DataLayoutEntryListRef params) const {
return llvm::TypeSize::getFixed(16);
return llvm::TypeSize::getFixed(80);
}

uint64_t FP80Type::getABIAlignment(const mlir::DataLayout &dataLayout,
Expand All @@ -770,7 +770,7 @@ const llvm::fltSemantics &FP128Type::getFloatSemantics() const {
llvm::TypeSize
FP128Type::getTypeSizeInBits(const mlir::DataLayout &dataLayout,
mlir::DataLayoutEntryListRef params) const {
return llvm::TypeSize::getFixed(16);
return llvm::TypeSize::getFixed(128);
}

uint64_t FP128Type::getABIAlignment(const mlir::DataLayout &dataLayout,
Expand Down

0 comments on commit 3f170be

Please sign in to comment.