Signed-off-by: Yonghong Song <yhs@fb.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316519
91177308-0d34-0410-b5e6-
96231b3b80d8
class BPFDAGToDAGISel : public SelectionDAGISel {
public:
- explicit BPFDAGToDAGISel(BPFTargetMachine &TM) : SelectionDAGISel(TM) {}
+ explicit BPFDAGToDAGISel(BPFTargetMachine &TM) : SelectionDAGISel(TM) {
+ curr_func_ = nullptr;
+ }
StringRef getPassName() const override {
return "BPF DAG->DAG Pattern Instruction Selection";