Skip to content

Commit 83e14ba

Browse files
committed
Review feedback
1 parent 2e8f7ff commit 83e14ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/sycl-post-link/CUDASpecConstantToSymbol.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void CUDASpecConstantToSymbolPass::fixupSpecConstantUses(
149149
IRBuilder B(A->getParent()->getParent()->getContext());
150150
SmallVector<Instruction *> ToErase;
151151
for (auto *U : A->users()) {
152-
auto *I = dyn_cast_or_null<Instruction>(&*U);
152+
auto *I = dyn_cast<Instruction>(&*U);
153153
assert(I && "Expected an instruction.");
154154
switch (I->getOpcode()) {
155155
default: {
@@ -193,7 +193,7 @@ void CUDASpecConstantToSymbolPass::rewriteKernelSignature(NamedMDNode *MD) {
193193
"is not a kernel?");
194194

195195
// Prepare a new function type, a copy of the original without the last arg.
196-
std::vector<Type *> Arguments;
196+
SmallVector<Type *> Arguments;
197197
SmallVector<AttributeSet, 8> ArgumentAttributes;
198198
auto FAttrs =
199199
F->getAttributes().removeParamAttributes(Context, F->arg_size() - 1);

0 commit comments

Comments
 (0)