We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ddf6e9 commit a12e747Copy full SHA for a12e747
llvm/include/llvm/CodeGen/SlotIndexes.h
@@ -387,7 +387,7 @@ class raw_ostream;
387
/// Returns the instruction for the given index, or null if the given
388
/// index has no instruction associated with it.
389
MachineInstr* getInstructionFromIndex(SlotIndex index) const {
390
- return index.isValid() ? index.listEntry()->getInstr() : nullptr;
+ return index.listEntry()->getInstr();
391
}
392
393
/// Returns the next non-null index, if one exists.
0 commit comments