File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/tools/sycl-post-link Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ void CUDASpecConstantToSymbolPass::fixupSpecConstantUses(
149
149
IRBuilder B (A->getParent ()->getParent ()->getContext ());
150
150
SmallVector<Instruction *> ToErase;
151
151
for (auto *U : A->users ()) {
152
- auto *I = dyn_cast_or_null <Instruction>(&*U);
152
+ auto *I = dyn_cast <Instruction>(&*U);
153
153
assert (I && " Expected an instruction." );
154
154
switch (I->getOpcode ()) {
155
155
default : {
@@ -193,7 +193,7 @@ void CUDASpecConstantToSymbolPass::rewriteKernelSignature(NamedMDNode *MD) {
193
193
" is not a kernel?" );
194
194
195
195
// Prepare a new function type, a copy of the original without the last arg.
196
- std::vector <Type *> Arguments;
196
+ SmallVector <Type *> Arguments;
197
197
SmallVector<AttributeSet, 8 > ArgumentAttributes;
198
198
auto FAttrs =
199
199
F->getAttributes ().removeParamAttributes (Context, F->arg_size () - 1 );
You can’t perform that action at this time.
0 commit comments