[llvm] r316519 - bpf: fix an uninitialized variable issue
Yonghong Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 14:36:33 PDT 2017
Author: yhs
Date: Tue Oct 24 14:36:33 2017
New Revision: 316519
URL: http://llvm.org/viewvc/llvm-project?rev=316519&view=rev
Log:
bpf: fix an uninitialized variable issue
Signed-off-by: Yonghong Song <yhs at fb.com>
Modified:
llvm/trunk/lib/Target/BPF/BPFISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/BPF/BPFISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/BPFISelDAGToDAG.cpp?rev=316519&r1=316518&r2=316519&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/BPFISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/BPF/BPFISelDAGToDAG.cpp Tue Oct 24 14:36:33 2017
@@ -40,7 +40,9 @@ namespace {
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";
More information about the llvm-commits
mailing list