diff options
author | Justin Lebar <jlebar@google.com> | 2017-01-27 01:49:39 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2017-01-27 01:49:39 +0000 |
commit | e3ac0fb948153ad29fdc54118aabb97779684e04 (patch) | |
tree | a16b0af17850bb685096cfa82d337b0c398ec2fb /llvm/lib/Transforms | |
parent | e5f8d643d45ff188111fa5b310d9b9ba46abdb4e (diff) | |
download | bcm5719-llvm-e3ac0fb948153ad29fdc54118aabb97779684e04.tar.gz bcm5719-llvm-e3ac0fb948153ad29fdc54118aabb97779684e04.zip |
[NVPTX] Fix use-after-stack-free bug in InstCombineCalls.
Introduced in r293244.
llvm-svn: 293251
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 8e1e1c58a3b..8109441eec9 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -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); } |