Skip to content

Commit 79818f8

Browse files
committed
X86AsmPrinter - fix uninitialized variable warnings. NFCI.
1 parent 0918967 commit 79818f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86AsmPrinter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MCStreamer;
2626
class MCSymbol;
2727

2828
class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
29-
const X86Subtarget *Subtarget;
29+
const X86Subtarget *Subtarget = nullptr;
3030
StackMaps SM;
3131
FaultMaps FM;
3232
std::unique_ptr<MCCodeEmitter> CodeEmitter;
@@ -60,7 +60,7 @@ class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
6060
// to emit any necessary padding-NOPs.
6161
void emitShadowPadding(MCStreamer &OutStreamer, const MCSubtargetInfo &STI);
6262
private:
63-
const MachineFunction *MF;
63+
const MachineFunction *MF = nullptr;
6464
bool InShadow = false;
6565

6666
// RequiredShadowSize holds the length of the shadow specified in the most

0 commit comments

Comments
 (0)