From 08b5b553083e23008664596a6caa53452a7000c8 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 7 Nov 2019 18:41:49 +0000 Subject: [PATCH] FDRRecords - fix uninitialized variable warnings. NFCI. --- llvm/include/llvm/XRay/FDRRecords.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/XRay/FDRRecords.h b/llvm/include/llvm/XRay/FDRRecords.h index e3e16f71e2fe..d53e6aa812f2 100644 --- a/llvm/include/llvm/XRay/FDRRecords.h +++ b/llvm/include/llvm/XRay/FDRRecords.h @@ -289,7 +289,7 @@ public: }; class CallArgRecord : public MetadataRecord { - uint64_t Arg; + uint64_t Arg = 0; friend class RecordInitializer; public: @@ -371,8 +371,8 @@ public: class FunctionRecord : public Record { RecordTypes Kind; - int32_t FuncId; - uint32_t Delta; + int32_t FuncId = 0; + uint32_t Delta = 0; friend class RecordInitializer; static constexpr unsigned kFunctionRecordSize = 8;