mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-13 20:25:12 +00:00
[TableGen] Use 'isa' to identify UnsetInits rather than comparing with the singleton object created by UnsetInit::get(). Makes it more consistent with the other types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2064,7 +2064,7 @@ TreePatternNode *TreePattern::ParseTreePattern(Init *TheInit, StringRef OpName){
|
||||
}
|
||||
|
||||
// ?:$name or just $name.
|
||||
if (TheInit == UnsetInit::get()) {
|
||||
if (isa<UnsetInit>(TheInit)) {
|
||||
if (OpName.empty())
|
||||
error("'?' argument requires a name to match with operand list");
|
||||
TreePatternNode *Res = new TreePatternNode(TheInit, 1);
|
||||
|
Reference in New Issue
Block a user