projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63e9d7
)
bpf: fix an uninitialized variable issue
author
Yonghong Song
<yhs@fb.com>
Tue, 24 Oct 2017 21:36:33 +0000
(21:36 +0000)
committer
Yonghong Song
<yhs@fb.com>
Tue, 24 Oct 2017 21:36:33 +0000
(21:36 +0000)
Signed-off-by: Yonghong Song <yhs@fb.com>
llvm-svn: 316519
llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
b/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
index
af9045e
..
1c12c23
100644
(file)
--- a/
llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
+++ b/
llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
@@
-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";