summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2017-01-27 01:49:39 +0000
committerJustin Lebar <jlebar@google.com>2017-01-27 01:49:39 +0000
commite3ac0fb948153ad29fdc54118aabb97779684e04 (patch)
treea16b0af17850bb685096cfa82d337b0c398ec2fb /llvm/lib/Transforms
parente5f8d643d45ff188111fa5b310d9b9ba46abdb4e (diff)
downloadbcm5719-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.cpp2
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);
}
OpenPOWER on IntegriCloud