Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Nov 27, 2024
1 parent 1080f65 commit 29c23b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CustomStages/MCADFetchDelayStage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ llvm::Error MCADFetchDelayStage::execute(llvm::mca::InstRef &IR) {
unsigned delayCyclesLeft = 0;
std::optional<MDInstrAddr> instrAddr = getMDInstrAddrForInstr(MD, IR);
std::optional<unsigned> instrSize = MCID.getSize();
assert(MCID.getSize() > 0);

// Check if previous instruction was a branch, and if so if the predicted
// branch target matched what we ended up executing
Expand Down

0 comments on commit 29c23b3

Please sign in to comment.