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(
953953 case AMDGPULibFunc::IMG1D:
954954 case AMDGPULibFunc::IMG2D:
955955 case AMDGPULibFunc::IMG3D:
956- T = StructType::create (C," ocl_image" )->getPointerTo (); break ;
957956 case AMDGPULibFunc::SAMPLER:
958- T = StructType::create (C," ocl_sampler" )->getPointerTo (); break ;
959957 case AMDGPULibFunc::EVENT:
960- T = StructType::create (C," ocl_event" )->getPointerTo (); break ;
958+ T = PointerType::getUnqual (C);
959+ break ;
961960 default :
962961 llvm_unreachable (" Unhandled param type" );
963962 return nullptr ;
964963 }
965964 if (P.VectorSize > 1 )
966965 T = FixedVectorType::get (T, P.VectorSize );
967966 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 );
971969 return T;
972970}
973971
You can’t perform that action at this time.
0 commit comments