Skip to content

Commit a64be48

Browse files
author
Yonghong Song
committed
Add DoesNotReturn attribute to bpf_unreachable() func
1 parent fa82e77 commit a64be48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/BPF/BPFISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ SDValue BPFTargetLowering::LowerTRAP(SDValue Op, SelectionDAG &DAG) const {
758758
CLI.IsVarArg = false;
759759
CLI.DL = DL;
760760
CLI.NoMerge = false;
761+
CLI.DoesNotReturn = true;
761762
return LowerCall(CLI, InVals);
762763
}
763764

0 commit comments

Comments
 (0)