diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-05-26 15:23:50 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-05-26 15:23:50 +0000 |
commit | 20a8d8e97e35f3128d40f44e20619b82c2fa1b9a (patch) | |
tree | e5d31d1ccb23a9a93b812ab19c32d4b2653b9ae2 | |
parent | 95d6c7731cf3bc6fd85cce5d5fc5381903aef9b2 (diff) | |
download | bcm5719-llvm-20a8d8e97e35f3128d40f44e20619b82c2fa1b9a.tar.gz bcm5719-llvm-20a8d8e97e35f3128d40f44e20619b82c2fa1b9a.zip |
[BPF] Remove exit-on-error flag in test (PR27767)
The exit-on-error flag is needed to avoid an assert where
llvm::SelectionDAGISel::LowerArguments doesn't create enough arguments. Fill up
with zeroes to reach the right number of args.
Fixes PR27767.
Differential Revision: http://reviews.llvm.org/D20571
llvm-svn: 270855
-rw-r--r-- | llvm/lib/Target/BPF/BPFISelLowering.cpp | 1 | ||||
-rw-r--r-- | llvm/test/CodeGen/BPF/many_args2.ll | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp index b2e4783b3ef..ca2370b5b5f 100644 --- a/llvm/lib/Target/BPF/BPFISelLowering.cpp +++ b/llvm/lib/Target/BPF/BPFISelLowering.cpp @@ -199,6 +199,7 @@ SDValue BPFTargetLowering::LowerFormalArguments( } } else { fail(DL, DAG, "defined with too many args"); + InVals.push_back(DAG.getConstant(0, DL, VA.getLocVT())); } } diff --git a/llvm/test/CodeGen/BPF/many_args2.ll b/llvm/test/CodeGen/BPF/many_args2.ll index 08a1179bc5e..a69886c2b20 100644 --- a/llvm/test/CodeGen/BPF/many_args2.ll +++ b/llvm/test/CodeGen/BPF/many_args2.ll @@ -1,4 +1,4 @@ -; RUN: not llc -march=bpf -exit-on-error < %s 2> %t1 +; RUN: not llc -march=bpf < %s 2> %t1 ; RUN: FileCheck %s < %t1 ; CHECK: too many args |