Commit e273ac4d authored by Johannes Doerfert's avatar Johannes Doerfert
Browse files

[Attributor][NFC] Add an assertion

parent d07b5a55
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);