Skip to content

Commit 6a9fd30

Browse files
committed
review changes
1 parent ac829e5 commit 6a9fd30

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/Conversion/TPtrToLLVM/TPtrToLLVM.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ struct PtrAddConverter : OpConversionPattern<tptr::PtrAddOp> {
7777
}
7878
}
7979

80-
if (!elemTy) {
81-
elemTy = ptrTy.getElementType();
82-
}
8380
if (!elemTy) {
8481
elemTy = rewriter.getIntegerType(8); // default to i8
8582
}

lib/Conversion/TPtrToLLVM/TPtrToLLVMPass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ namespace tptr {
3030

3131
namespace {
3232

33-
class TptrToLLVMTypeConverter : public TypeConverter {
34-
public:
33+
struct TptrToLLVMTypeConverter : TypeConverter {
3534
Type convertPtrPointerType(ptr::PtrType type) {
3635
auto ctx = type.getContext();
3736
return LLVM::LLVMPointerType::get(ctx);

0 commit comments

Comments
 (0)