From ac7dc6e70157313c455fd49f317e868833fbfdc7 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 llvm-svn: 220440 --- llvm/lib/MC/MCObjectStreamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index e6f50b0..21e6867 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/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.7.4