Skip to content

Commit

Permalink
[NVPTX] Fix use-after-stack-free bug in InstCombineCalls.
Browse files Browse the repository at this point in the history
Introduced in r293244.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293251 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Justin Lebar committed Jan 27, 2017
1 parent 6bc6fda commit 2420ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/InstCombine/InstCombineCalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ static Instruction *SimplifyNVVMIntrinsic(IntrinsicInst *II, InstCombiner &IC) {
SmallVector<Value *, 4> Args(II->arg_operands());
// All the target-generic intrinsics currently of interest to us have one
// type argument, equal to that of the nvvm intrinsic's argument.
ArrayRef<Type *> Tys = {II->getArgOperand(0)->getType()};
Type *Tys[] = {II->getArgOperand(0)->getType()};
return CallInst::Create(
Intrinsic::getDeclaration(II->getModule(), *Action.IID, Tys), Args);
}
Expand Down

0 comments on commit 2420ede

Please sign in to comment.