mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 06:10:48 +00:00
TableGen: Check if pattern outputs matches instruction defs
Attempt to fix address sanitizer bots when building ARM.
This commit is contained in:
parent
f4701f9f4b
commit
20054fd4b4
@ -4394,6 +4394,11 @@ Expected<action_iterator> GlobalISelEmitter::importExplicitDefRenderers(
|
||||
|
||||
DstMIBuilder.addRenderer<CopyRenderer>(DstI->Operands[0].Name);
|
||||
|
||||
// Some instructions have multiple defs, but are missing a type entry
|
||||
// (e.g. s_cc_out operands).
|
||||
if (Dst->getExtTypes().size() < NumDefs)
|
||||
return failedImport("unhandled discarded def");
|
||||
|
||||
// Patterns only handle a single result, so any result after the first is an
|
||||
// implicitly dead def.
|
||||
for (unsigned I = 1; I < NumDefs; ++I) {
|
||||
|
Loading…
Reference in New Issue
Block a user