For ARM backend, fixed "byval" attribute support.
[oota-llvm.git] / lib / CodeGen / LiveRangeEdit.cpp
index 3b28e6afb670ea067f5cac0435293672111c0ae6..7793e96c354096d770d458f166fa370818aadbeb 100644 (file)
@@ -77,7 +77,7 @@ bool LiveRangeEdit::anyRematerializable(AliasAnalysis *aa) {
 /// OrigIdx are also available with the same value at UseIdx.
 bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI,
                                        SlotIndex OrigIdx,
-                                       SlotIndex UseIdx) {
+                                       SlotIndex UseIdx) const {
   OrigIdx = OrigIdx.getRegSlot(true);
   UseIdx = UseIdx.getRegSlot(true);
   for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) {