]> granicus.if.org Git - llvm/commitdiff
[JITLink] Fix an unused variable warning.
authorLang Hames <lhames@gmail.com>
Fri, 4 Oct 2019 05:24:39 +0000 (05:24 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 4 Oct 2019 05:24:39 +0000 (05:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373692 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JITLink/EHFrameSupport.cpp

index 355a000bb9821a70a3e58bf732a95b8e14dffef5..f80b0e7f8909584b00450142c223cbcab03dd531 100644 (file)
@@ -27,12 +27,11 @@ EHFrameBinaryParser::EHFrameBinaryParser(JITTargetAddress EHFrameAddress,
 Error EHFrameBinaryParser::addToGraph() {
   while (!EHFrameReader.empty()) {
     size_t RecordOffset = EHFrameReader.getOffset();
-    JITTargetAddress RecordAddress = EHFrameAddress + RecordOffset;
 
     LLVM_DEBUG({
       dbgs() << "Processing eh-frame record at "
-             << format("0x%016" PRIx64, RecordAddress) << " (offset "
-             << RecordOffset << ")\n";
+             << format("0x%016" PRIx64, EHFrameAddress + RecordOffset)
+             << " (offset " << RecordOffset << ")\n";
     });
 
     size_t RecordLength = 0;