Skip to content

Commit

Permalink
[BPF] Remove exit-on-error flag in test (PR27767)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rovka committed May 26, 2016
1 parent 95d6c77 commit 20a8d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions llvm/lib/Target/BPF/BPFISelLowering.cpp
Expand Up @@ -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()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion 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

Expand Down

0 comments on commit 20a8d8e

Please sign in to comment.