forked from OSchip/llvm-project
[Attributor][NFC] Add an assertion
This commit is contained in:
parent
d07b5a5525
commit
e273ac4d88
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue