Skip to content

Commit c321248

Browse files
Update clang/include/clang/CIR/Dialect/IR/CIRDataLayout.h
Co-authored-by: Amr Hesham <[email protected]>
1 parent 119873c commit c321248

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/include/clang/CIR/Dialect/IR/CIRDataLayout.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ class CIRDataLayout {
9595

9696
mlir::Type getIntPtrType(mlir::Type Ty) const {
9797
assert(mlir::isa<cir::PointerType>(Ty) && "Expected pointer type");
98-
auto IntTy =
99-
cir::IntType::get(Ty.getContext(), getPointerTypeSizeInBits(Ty), false);
100-
return IntTy;
98+
return cir::IntType::get(ty.getContext(), getPointerTypeSizeInBits(ty), false);
10199
}
102100
};
103101

0 commit comments

Comments
 (0)