summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/llvm-cov/GCOVReader.cpp2
-rw-r--r--tools/llvm-cov/GCOVReader.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/llvm-cov/GCOVReader.cpp b/tools/llvm-cov/GCOVReader.cpp
index cf01078462..e4570b1229 100644
--- a/tools/llvm-cov/GCOVReader.cpp
+++ b/tools/llvm-cov/GCOVReader.cpp
@@ -29,7 +29,7 @@ GCOVFile::~GCOVFile() {
/// read - Read GCOV buffer.
bool GCOVFile::read(GCOVBuffer &Buffer) {
- Format = Buffer.readGCOVFormat();
+ GCOVFormat Format = Buffer.readGCOVFormat();
if (Format == InvalidGCOV)
return false;
diff --git a/tools/llvm-cov/GCOVReader.h b/tools/llvm-cov/GCOVReader.h
index 1e0807a03c..67199db142 100644
--- a/tools/llvm-cov/GCOVReader.h
+++ b/tools/llvm-cov/GCOVReader.h
@@ -155,13 +155,12 @@ private:
/// GCOVFile - Collects file information.
class GCOVFile {
public:
- GCOVFile() : Format(InvalidGCOV) {}
+ GCOVFile() {}
~GCOVFile();
bool read(GCOVBuffer &Buffer);
void dump();
void collectLineCounts(FileInfo &FI);
private:
- enum GCOVFormat Format;
SmallVector<GCOVFunction *, 16> Functions;
};