aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/TestingSupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-cov/TestingSupport.cpp')
-rw-r--r--llvm/tools/llvm-cov/TestingSupport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/TestingSupport.cpp b/llvm/tools/llvm-cov/TestingSupport.cpp
index 8f580cf..9641764 100644
--- a/llvm/tools/llvm-cov/TestingSupport.cpp
+++ b/llvm/tools/llvm-cov/TestingSupport.cpp
@@ -67,11 +67,10 @@ int convert_for_testing_main(int argc, const char **argv) {
return 1;
// Get the contents of the given sections.
+ uint64_t ProfileNamesAddress = ProfileNames.getAddress();
StringRef CoverageMappingData;
- uint64_t ProfileNamesAddress;
StringRef ProfileNamesData;
if (CoverageMapping.getContents(CoverageMappingData) ||
- ProfileNames.getAddress(ProfileNamesAddress) ||
ProfileNames.getContents(ProfileNamesData))
return 1;