mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Move assert above first use of variable that we'd be asserting on.
llvm-svn: 187899
This commit is contained in:
parent
38dd5e35e8
commit
9b6f209c8c
@ -580,10 +580,10 @@ static void writeFragment(const MCAssembler &Asm, const MCAsmLayout &Layout,
|
|||||||
case MCFragment::FT_Align: {
|
case MCFragment::FT_Align: {
|
||||||
++stats::EmittedAlignFragments;
|
++stats::EmittedAlignFragments;
|
||||||
const MCAlignFragment &AF = cast<MCAlignFragment>(F);
|
const MCAlignFragment &AF = cast<MCAlignFragment>(F);
|
||||||
uint64_t Count = FragmentSize / AF.getValueSize();
|
|
||||||
|
|
||||||
assert(AF.getValueSize() && "Invalid virtual align in concrete fragment!");
|
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
|
// FIXME: This error shouldn't actually occur (the front end should emit
|
||||||
// multiple .align directives to enforce the semantics it wants), but is
|
// multiple .align directives to enforce the semantics it wants), but is
|
||||||
// severe enough that we want to report it. How to handle this?
|
// severe enough that we want to report it. How to handle this?
|
||||||
|
Loading…
Reference in New Issue
Block a user