diff options
| author | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-02-23 11:31:49 +0000 |
|---|---|---|
| committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-02-23 11:31:49 +0000 |
| commit | c10570f7c6ab7424edbc6e6e7c8b7cb69730d991 (patch) | |
| tree | 6c849f3af0f14905b9a7dceeb0329caf7a8abcee /llvm/test/TableGen/if.td | |
| parent | a4cde9d2e22308381cefeda7e8e8ccd4a48fc19d (diff) | |
| download | bcm5719-llvm-c10570f7c6ab7424edbc6e6e7c8b7cb69730d991.tar.gz bcm5719-llvm-c10570f7c6ab7424edbc6e6e7c8b7cb69730d991.zip | |
Revert "TableGen: Fix typeIsConvertibleTo for record types"
This reverts r325884.
Clang's TableGen has dependencies on the exact ordering of superclasses.
Revert this change fully for now to fix the build.
Change-Id: Ib297f5571cc7809f00838702ad7ab53d47335b26
llvm-svn: 325891
Diffstat (limited to 'llvm/test/TableGen/if.td')
| -rw-r--r-- | llvm/test/TableGen/if.td | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/llvm/test/TableGen/if.td b/llvm/test/TableGen/if.td index f2a4bc139ec..019e4dd1585 100644 --- a/llvm/test/TableGen/if.td +++ b/llvm/test/TableGen/if.td @@ -69,34 +69,10 @@ class I2<int c> : I1<c>; // CHECK-NEXT: int i = 0; def DI1: I1<1>; -// CHECK: def DI2 { +// CHECK: def DI2 { // I1 I2 // CHECK-NEXT: int i = 0; def DI2: I2<1>; -// Check that !if with operands of different subtypes can initialize a -// supertype variable. -// -// CHECK: def EXd1 { -// CHECK: E x = E1d; -// CHECK: } -// -// CHECK: def EXd2 { -// CHECK: E x = E2d; -// CHECK: } -class E<int dummy> {} -class E1<int dummy> : E<dummy> {} -class E2<int dummy> : E<dummy> {} - -class EX<int cc, E1 b, E2 c> { - E x = !if(cc, b, c); -} - -def E1d : E1<0>; -def E2d : E2<0>; - -def EXd1 : EX<1, E1d, E2d>; -def EXd2 : EX<0, E1d, E2d>; - // CHECK: def One // CHECK-NEXT: list<int> first = [1, 2, 3]; // CHECK-NEXT: list<int> rest = [1, 2, 3]; |

