Skip to content

Commit 4eef1be

Browse files
committed
Switch to opaque pointers
1 parent 75d280d commit 4eef1be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/codegen.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,19 @@ auto getInt8PtrTy(LLVMContext &ctxt) {
145145
return PointerType::getUnqual(ctxt);
146146
}
147147
auto getInt16PtrTy(LLVMContext &ctxt) {
148-
return Type::getInt16PtrTy(ctxt);
148+
return PointerType::getUnqual(ctxt);
149149
}
150150
auto getInt32PtrTy(LLVMContext &ctxt) {
151-
return Type::getInt32PtrTy(ctxt);
151+
return PointerType::getUnqual(ctxt);
152152
}
153153
auto getInt64PtrTy(LLVMContext &ctxt) {
154-
return Type::getInt64PtrTy(ctxt);
154+
return PointerType::getUnqual(ctxt);
155155
}
156156
auto getFloatPtrTy(LLVMContext &ctxt) {
157-
return Type::getFloatPtrTy(ctxt);
157+
return PointerType::getUnqual(ctxt);
158158
}
159159
auto getDoublePtrTy(LLVMContext &ctxt) {
160-
return Type::getDoublePtrTy(ctxt);
160+
return PointerType::getUnqual(ctxt);
161161
}
162162

163163
typedef Instruction TerminatorInst;

0 commit comments

Comments
 (0)