Commit Graph

2 Commits

Author SHA1 Message Date
Quentin Colombet 427bda4e9b [MC/AsmParser] layout-interdependency.s depends on having a proper triple
Fix the requirements for that test.

NFC
2020-07-13 14:38:47 -07:00
Thomas Preud'homme 6c67ee0f58 [MC] Fix PR45805: infinite recursion in assembler
Give up folding an expression if the fragment of one of the operands
would require laying out a fragment already being laid out. This
prevents hitting an infinite recursion when a fill size expression
refers to a later fragment since computing the offset of that fragment
would require laying out the fill fragment and thus computing its size
expression.

Reviewed By: echristo

Differential Revision: https://reviews.llvm.org/D79570
2020-06-25 15:42:36 +01:00