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 | ee0dcf4b3ef6a0dbc03ceb96ca1bb6eef8b26e70 (patch) | |
tree | f0b1a0982599b750158c24a1e60378f3d4ba8cb5 /lib | |
parent | 28a07c868e3542ddc1d3c7c00888be773e858a1c (diff) | |
download | external_llvm-ee0dcf4b3ef6a0dbc03ceb96ca1bb6eef8b26e70.zip external_llvm-ee0dcf4b3ef6a0dbc03ceb96ca1bb6eef8b26e70.tar.gz external_llvm-ee0dcf4b3ef6a0dbc03ceb96ca1bb6eef8b26e70.tar.bz2 |
Move assert above first use of variable that we'd be asserting on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 24f4b8e..68111f1 100644 --- a/lib/MC/MCAssembler.cpp +++ b/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? |