Skip to content

Commit 29a5a6e

Browse files
committed
Fix uninitialized variable warning. NFCI.
1 parent 6ebc508 commit 29a5a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ using namespace llvm;
2727
// SelectionDAG operations.
2828
namespace {
2929
class RISCVDAGToDAGISel final : public SelectionDAGISel {
30-
const RISCVSubtarget *Subtarget;
30+
const RISCVSubtarget *Subtarget = nullptr;
3131

3232
public:
3333
explicit RISCVDAGToDAGISel(RISCVTargetMachine &TargetMachine)

0 commit comments

Comments
 (0)