[llvm] r344812 - Fix typos in assert message
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 19 13:17:05 PDT 2018
Author: arsenm
Date: Fri Oct 19 13:17:05 2018
New Revision: 344812
URL: http://llvm.org/viewvc/llvm-project?rev=344812&view=rev
Log:
Fix typos in assert message
Modified:
llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=344812&r1=344811&r2=344812&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Fri Oct 19 13:17:05 2018
@@ -448,7 +448,7 @@ class raw_ostream;
/// MI is not required to have an index.
SlotIndex getIndexBefore(const MachineInstr &MI) const {
const MachineBasicBlock *MBB = MI.getParent();
- assert(MBB && "MI must be inserted inna basic block");
+ assert(MBB && "MI must be inserted in a basic block");
MachineBasicBlock::const_iterator I = MI, B = MBB->begin();
while (true) {
if (I == B)
@@ -465,7 +465,7 @@ class raw_ostream;
/// MI is not required to have an index.
SlotIndex getIndexAfter(const MachineInstr &MI) const {
const MachineBasicBlock *MBB = MI.getParent();
- assert(MBB && "MI must be inserted inna basic block");
+ assert(MBB && "MI must be inserted in a basic block");
MachineBasicBlock::const_iterator I = MI, E = MBB->end();
while (true) {
++I;
More information about the llvm-commits
mailing list