diff options
author | Henrich Lauko <xlauko@mail.muni.cz> | 2025-05-14 20:39:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-14 20:39:09 +0200 |
commit | b434bc4e90c2b83156871e7b4e12f04447930b9c (patch) | |
tree | 20ef0138fb746978966dd2a614a200af9c65961b | |
parent | d47cd5008bae7c4159dac1f92d266ddeeb70f55d (diff) | |
download | llvm-b434bc4e90c2b83156871e7b4e12f04447930b9c.zip llvm-b434bc4e90c2b83156871e7b4e12f04447930b9c.tar.gz llvm-b434bc4e90c2b83156871e7b4e12f04447930b9c.tar.bz2 |
[CIR][NFC] Remove redundant pointer casts (#139898)
This mirrors incubator changes from https://github.com/llvm/clangir/pull/1609
-rw-r--r-- | clang/include/clang/CIR/Dialect/IR/CIROps.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/CIR/Dialect/IR/CIROps.td b/clang/include/clang/CIR/Dialect/IR/CIROps.td index 9f5fa26..e08f372 100644 --- a/clang/include/clang/CIR/Dialect/IR/CIROps.td +++ b/clang/include/clang/CIR/Dialect/IR/CIROps.td @@ -269,7 +269,7 @@ def PtrStrideOp : CIR_Op<"ptr_stride", let extraClassDeclaration = [{ // Get type pointed by the base pointer. mlir::Type getElementTy() { - return mlir::cast<cir::PointerType>(getBase().getType()).getPointee(); + return getBase().getType().getPointee(); } }]; } @@ -1710,7 +1710,7 @@ def GetMemberOp : CIR_Op<"get_member"> { /// Return the result type. cir::PointerType getResultTy() { - return mlir::cast<cir::PointerType>(getResult().getType()); + return getResult().getType(); } }]; |