[llvm] fabe52a - Fix uninitialized variable warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 06:29:38 PST 2020
Author: Simon Pilgrim
Date: 2020-02-27T14:20:43Z
New Revision: fabe52a7412d850bf06e006db1d53de0500a1853
URL: https://github.com/llvm/llvm-project/commit/fabe52a7412d850bf06e006db1d53de0500a1853
DIFF: https://github.com/llvm/llvm-project/commit/fabe52a7412d850bf06e006db1d53de0500a1853.diff
LOG: Fix uninitialized variable warning. NFC.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 1cc9c7b16d78..c2d18e21d07d 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -23423,7 +23423,7 @@ SDValue X86TargetLowering::LowerVAARG(SDValue Op, SelectionDAG &DAG) const {
EVT ArgVT = Op.getNode()->getValueType(0);
Type *ArgTy = ArgVT.getTypeForEVT(*DAG.getContext());
uint32_t ArgSize = DAG.getDataLayout().getTypeAllocSize(ArgTy);
- uint8_t ArgMode;
+ uint8_t ArgMode = 0;
// Decide which area this value should be read from.
// TODO: Implement the AMD64 ABI in its entirety. This simple
More information about the llvm-commits
mailing list