[Attributor][NFC] Add an assertion

This commit is contained in:
Johannes Doerfert 2020-01-12 00:13:03 -06:00
parent d07b5a5525
commit e273ac4d88
1 changed files with 2 additions and 0 deletions

View File

@ -971,6 +971,8 @@ public:
indicatePessimisticFixpoint();
return;
}
assert(!F->getReturnType()->isVoidTy() &&
"Did not expect a void return type!");
// The map from instruction opcodes to those instructions in the function.
auto &OpcodeInstMap = A.getInfoCache().getOpcodeInstMapForFunction(*F);