File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
clang/tools/clang-offload-wrapper
llvm/lib/Frontend/Offloading Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ class BinaryWrapper {
409409 std::pair<Constant *, Constant *>
410410 addStructArrayToModule (ArrayRef<Constant *> ArrayData, Type *ElemTy) {
411411
412- auto *PtrTy = ElemTy-> getPointerTo ( );
412+ auto *PtrTy = llvm::PointerType::getUnqual (C );
413413
414414 if (ArrayData.size () == 0 ) {
415415 auto *NullPtr = Constant::getNullValue (PtrTy);
@@ -917,8 +917,7 @@ class BinaryWrapper {
917917 PropRegistry = MySymPropReader->getPropRegistry ();
918918 } else {
919919 if (PropRegistryFile.empty ()) {
920- auto *NullPtr =
921- Constant::getNullValue (getSyclPropSetTy ()->getPointerTo ());
920+ auto *NullPtr = Constant::getNullValue (llvm::PointerType::getUnqual (C));
922921 return std::pair<Constant *, Constant *>(NullPtr, NullPtr);
923922 }
924923 // load the property registry file
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ struct Wrapper {
358358 std::pair<Constant *, Constant *>
359359 addStructArrayToModule (ArrayRef<Constant *> ArrayData, Type *ElemTy) {
360360 if (ArrayData.empty ()) {
361- auto *PtrTy = ElemTy->getPointerTo ( );
361+ auto *PtrTy = llvm::PointerType::getUnqual ( ElemTy->getContext () );
362362 auto *NullPtr = Constant::getNullValue (PtrTy);
363363 return std::make_pair (NullPtr, NullPtr);
364364 }
You can’t perform that action at this time.
0 commit comments