We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d47cd50 commit b434bc4Copy full SHA for b434bc4
clang/include/clang/CIR/Dialect/IR/CIROps.td
@@ -269,7 +269,7 @@ def PtrStrideOp : CIR_Op<"ptr_stride",
269
let extraClassDeclaration = [{
270
// Get type pointed by the base pointer.
271
mlir::Type getElementTy() {
272
- return mlir::cast<cir::PointerType>(getBase().getType()).getPointee();
+ return getBase().getType().getPointee();
273
}
274
}];
275
@@ -1710,7 +1710,7 @@ def GetMemberOp : CIR_Op<"get_member"> {
1710
1711
/// Return the result type.
1712
cir::PointerType getResultTy() {
1713
- return mlir::cast<cir::PointerType>(getResult().getType());
+ return getResult().getType();
1714
1715
1716
0 commit comments