[llvm] 49406fa - Fix uninitialized variable warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 05:27:03 PST 2019
Author: Simon Pilgrim
Date: 2019-11-18T13:26:50Z
New Revision: 49406fa9f46214c22489c60099d03a0c307cb460
URL: https://github.com/llvm/llvm-project/commit/49406fa9f46214c22489c60099d03a0c307cb460
DIFF: https://github.com/llvm/llvm-project/commit/49406fa9f46214c22489c60099d03a0c307cb460.diff
LOG: Fix uninitialized variable warning. NFC.
Added:
Modified:
llvm/unittests/tools/llvm-cfi-verify/FileAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/tools/llvm-cfi-verify/FileAnalysis.cpp b/llvm/unittests/tools/llvm-cfi-verify/FileAnalysis.cpp
index e38ac9264c8d..ef53a70aeea0 100644
--- a/llvm/unittests/tools/llvm-cfi-verify/FileAnalysis.cpp
+++ b/llvm/unittests/tools/llvm-cfi-verify/FileAnalysis.cpp
@@ -62,7 +62,8 @@ class ELFTestFileAnalysis : public FileAnalysis {
class BasicFileAnalysisTest : public ::testing::Test {
public:
- BasicFileAnalysisTest(StringRef Trip) : Analysis(Trip) {}
+ BasicFileAnalysisTest(StringRef Trip)
+ : SuccessfullyInitialised(false), Analysis(Trip) {}
protected:
virtual void SetUp() {
IgnoreDWARFFlag = true;
More information about the llvm-commits
mailing list