[TableGen] fix assert in !cast when used out of definition in a multiclass
authorValery Pykhtin <Valery.Pykhtin@amd.com>
Wed, 10 Oct 2018 10:52:57 +0000 (10:52 +0000)
committerValery Pykhtin <Valery.Pykhtin@amd.com>
Wed, 10 Oct 2018 10:52:57 +0000 (10:52 +0000)
commit52391ea0b3af40a2e7b2232e1c8b2a37cd1c0680
treeb581bb2e29d876b98b5c1226915205c17fccff23
parentaeb4b3e6324bfcce4b997204e54b8a0bf63efd5d
[TableGen] fix assert in !cast when used out of definition in a multiclass

Differential Revision: https://reviews.llvm.org/D53068

llvm-svn: 344134
llvm/lib/TableGen/Record.cpp
llvm/test/TableGen/cast-multiclass.td [new file with mode: 0644]