File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -953,21 +953,19 @@ static Type* getIntrinsicParamType(
953
953
case AMDGPULibFunc::IMG1D:
954
954
case AMDGPULibFunc::IMG2D:
955
955
case AMDGPULibFunc::IMG3D:
956
- T = StructType::create (C," ocl_image" )->getPointerTo (); break ;
957
956
case AMDGPULibFunc::SAMPLER:
958
- T = StructType::create (C," ocl_sampler" )->getPointerTo (); break ;
959
957
case AMDGPULibFunc::EVENT:
960
- T = StructType::create (C," ocl_event" )->getPointerTo (); break ;
958
+ T = PointerType::getUnqual (C);
959
+ break ;
961
960
default :
962
961
llvm_unreachable (" Unhandled param type" );
963
962
return nullptr ;
964
963
}
965
964
if (P.VectorSize > 1 )
966
965
T = FixedVectorType::get (T, P.VectorSize );
967
966
if (P.PtrKind != AMDGPULibFunc::BYVALUE)
968
- T = useAddrSpace ? T->getPointerTo ((P.PtrKind & AMDGPULibFunc::ADDR_SPACE)
969
- - 1 )
970
- : T->getPointerTo ();
967
+ T = PointerType::get (
968
+ C, useAddrSpace ? ((P.PtrKind & AMDGPULibFunc::ADDR_SPACE) - 1 ) : 0 );
971
969
return T;
972
970
}
973
971
You can’t perform that action at this time.
0 commit comments