Skip to content

Commit 6ebc508

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class LLVM_LIBRARY_VISIBILITY NVPTXDAGToDAGISel : public SelectionDAGISel {
4646
return "NVPTX DAG->DAG Pattern Instruction Selection";
4747
}
4848
bool runOnMachineFunction(MachineFunction &MF) override;
49-
const NVPTXSubtarget *Subtarget;
49+
const NVPTXSubtarget *Subtarget = nullptr;
5050

5151
bool SelectInlineAsmMemoryOperand(const SDValue &Op,
5252
unsigned ConstraintID,

0 commit comments

Comments
 (0)