mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 17:06:59 +00:00
[TableGen] Fix a bug introduced in r256627. If the switch was not emitted we still emitted a closing curly brace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d0e40564f
commit
8dd99ee81d
@ -2170,11 +2170,12 @@ static void emitIsSubclass(CodeGenTarget &Target,
|
||||
OS << " return false;\n";
|
||||
}
|
||||
}
|
||||
OS << " }\n";
|
||||
|
||||
// If there were case statements emitted into the string stream write the
|
||||
// default.
|
||||
if (!EmittedSwitch)
|
||||
if (EmittedSwitch)
|
||||
OS << " }\n";
|
||||
else
|
||||
OS << " return false;\n";
|
||||
|
||||
OS << "}\n\n";
|
||||
|
Loading…
Reference in New Issue
Block a user