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 {
409
409
std::pair<Constant *, Constant *>
410
410
addStructArrayToModule (ArrayRef<Constant *> ArrayData, Type *ElemTy) {
411
411
412
- auto *PtrTy = ElemTy-> getPointerTo ( );
412
+ auto *PtrTy = llvm::PointerType::getUnqual (C );
413
413
414
414
if (ArrayData.size () == 0 ) {
415
415
auto *NullPtr = Constant::getNullValue (PtrTy);
@@ -917,8 +917,7 @@ class BinaryWrapper {
917
917
PropRegistry = MySymPropReader->getPropRegistry ();
918
918
} else {
919
919
if (PropRegistryFile.empty ()) {
920
- auto *NullPtr =
921
- Constant::getNullValue (getSyclPropSetTy ()->getPointerTo ());
920
+ auto *NullPtr = Constant::getNullValue (llvm::PointerType::getUnqual (C));
922
921
return std::pair<Constant *, Constant *>(NullPtr, NullPtr);
923
922
}
924
923
// load the property registry file
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ struct Wrapper {
358
358
std::pair<Constant *, Constant *>
359
359
addStructArrayToModule (ArrayRef<Constant *> ArrayData, Type *ElemTy) {
360
360
if (ArrayData.empty ()) {
361
- auto *PtrTy = ElemTy->getPointerTo ( );
361
+ auto *PtrTy = llvm::PointerType::getUnqual ( ElemTy->getContext () );
362
362
auto *NullPtr = Constant::getNullValue (PtrTy);
363
363
return std::make_pair (NullPtr, NullPtr);
364
364
}
You can’t perform that action at this time.
0 commit comments