summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-03-10 04:28:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-03-10 04:28:09 +0000
commitc63a98a662c257d5bf0ceb52003065658977ded5 (patch)
tree3a6a6e684dff3042aa11758bb4b1fee0b62df507 /llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
parent7ab2cc178fd68568146d21e320733885bde3687c (diff)
downloadbcm5719-llvm-c63a98a662c257d5bf0ceb52003065658977ded5.tar.gz
bcm5719-llvm-c63a98a662c257d5bf0ceb52003065658977ded5.zip
Move variable into assert to fix -Asserts builds.
llvm-svn: 231753
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index 50047c1ab71..155aade65e1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
@@ -171,12 +171,10 @@ void AsmPrinter::EmitSectionOffset(const MCSymbol *Label,
return;
}
- // Get the section that we're referring to, based on SectionLabel.
- const MCSection &Section = SectionLabel->getSection();
-
// If Label has already been emitted, verify that it is in the same section as
// section label for sanity.
- assert((!Label->isInSection() || &Label->getSection() == &Section) &&
+ assert((!Label->isInSection() ||
+ &Label->getSection() == &SectionLabel->getSection()) &&
"Section offset using wrong section base for label");
// If the format uses relocations with dwarf, refer to the symbol directly.
OpenPOWER on IntegriCloud