[llvm] r220440 - Attempt to fix the build after r220439
David Majnemer
david.majnemer at gmail.com
Wed Oct 22 15:46:05 PDT 2014
Author: majnemer
Date: Wed Oct 22 17:46:05 2014
New Revision: 220440
URL: http://llvm.org/viewvc/llvm-project?rev=220440&view=rev
Log:
Attempt to fix the build after r220439
Modified:
llvm/trunk/lib/MC/MCObjectStreamer.cpp
Modified: llvm/trunk/lib/MC/MCObjectStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectStreamer.cpp?rev=220440&r1=220439&r2=220440&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectStreamer.cpp Wed Oct 22 17:46:05 2014
@@ -148,7 +148,7 @@ void MCObjectStreamer::EmitLabel(MCSymbo
// 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<MCDataFragment>(getCurrentFragment())) {
+ if (auto *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment())) {
SD.setFragment(F);
SD.setOffset(F->getContents().size());
} else {
More information about the llvm-commits
mailing list