[llvm] 0cc7c29 - AArch64FunctionInfo - fix uninitialized variable warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 11 03:26:29 PST 2019
Author: Simon Pilgrim
Date: 2019-11-11T11:24:09Z
New Revision: 0cc7c29a97e401359782edf3263cdc1a130415d8
URL: https://github.com/llvm/llvm-project/commit/0cc7c29a97e401359782edf3263cdc1a130415d8
DIFF: https://github.com/llvm/llvm-project/commit/0cc7c29a97e401359782edf3263cdc1a130415d8.diff
LOG: AArch64FunctionInfo - fix uninitialized variable warnings. NFCI.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h b/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
index dc9ca277b47f..2cc8a0947baa 100644
--- a/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
@@ -51,15 +51,15 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
bool HasStackFrame = false;
/// Amount of stack frame size, not including callee-saved registers.
- unsigned LocalStackSize;
+ unsigned LocalStackSize = 0;
/// The start and end frame indices for the SVE callee saves.
- int MinSVECSFrameIndex;
- int MaxSVECSFrameIndex;
+ int MinSVECSFrameIndex = 0;
+ int MaxSVECSFrameIndex = 0;
/// Amount of stack frame size used for saving callee-saved registers.
- unsigned CalleeSavedStackSize;
- unsigned SVECalleeSavedStackSize;
+ unsigned CalleeSavedStackSize = 0;
+ unsigned SVECalleeSavedStackSize = 0;
bool HasCalleeSavedStackSize = false;
/// Number of TLS accesses using the special (combinable)
@@ -123,7 +123,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
// Offset from SP-at-entry to the tagged base pointer.
// Tagged base pointer is set up to point to the first (lowest address) tagged
// stack slot.
- unsigned TaggedBasePointerOffset;
+ unsigned TaggedBasePointerOffset = 0;
public:
AArch64FunctionInfo() = default;
More information about the llvm-commits
mailing list