From ae3811c355bfcf37d2c3573038b3ac216fee89f0 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Wed, 22 Oct 2014 22:46:05 +0000 Subject: [PATCH] Attempt to fix the build after r220439 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220440 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCObjectStreamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index e6f50b0ec73..21e68678e75 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -148,7 +148,7 @@ void MCObjectStreamer::EmitLabel(MCSymbol *Symbol) { // If there is a current fragment, mark the symbol as pointing into it. // Otherwise queue the label and set its fragment pointer when we emit the // next fragment. - if (dyn_cast_or_null(getCurrentFragment())) { + if (auto *F = dyn_cast_or_null(getCurrentFragment())) { SD.setFragment(F); SD.setOffset(F->getContents().size()); } else { -- 2.34.1