mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Fix pr5470. Tablegen handles template arguments by temporarily setting their
values, resolving references to them, and then removing the definitions. If a template argument is set to an undefined value, we need to resolve references to that argument to an explicit undefined value. The current code leaves the reference to the template argument as it is, which causes an assertion failure later when the definition of the template argument is removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// RUN: tblgen %s
|
||||
class x {
|
||||
field bits<32> A;
|
||||
}
|
||||
|
||||
class y<bits<2> B> : x {
|
||||
let A{21-20} = B;
|
||||
}
|
||||
|
||||
def z : y<{0,?}>;
|
||||
Reference in New Issue
Block a user