diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-08-07 18:51:09 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-08-07 18:51:09 +0000 |
| commit | ed420bb5c3975666ca5157f55f4c7380ae045da0 (patch) | |
| tree | 617e6bb63e9c59c56c083113c0acfa93792ea5a9 /llvm | |
| parent | 4ed963a0bac4a09b9a8770166c96128b92893494 (diff) | |
| download | bcm5719-llvm-ed420bb5c3975666ca5157f55f4c7380ae045da0.tar.gz bcm5719-llvm-ed420bb5c3975666ca5157f55f4c7380ae045da0.zip | |
Move assert above first use of variable that we'd be asserting on.
llvm-svn: 187899
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 24f4b8e635e..68111f187d3 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -580,10 +580,10 @@ static void writeFragment(const MCAssembler &Asm, const MCAsmLayout &Layout, case MCFragment::FT_Align: { ++stats::EmittedAlignFragments; const MCAlignFragment &AF = cast<MCAlignFragment>(F); - uint64_t Count = FragmentSize / AF.getValueSize(); - assert(AF.getValueSize() && "Invalid virtual align in concrete fragment!"); + uint64_t Count = FragmentSize / AF.getValueSize(); + // FIXME: This error shouldn't actually occur (the front end should emit // multiple .align directives to enforce the semantics it wants), but is // severe enough that we want to report it. How to handle this? |

