aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/DebugLoc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h
index d77ee84..aa6d825 100644
--- a/include/llvm/CodeGen/DebugLoc.h
+++ b/include/llvm/CodeGen/DebugLoc.h
@@ -49,8 +49,8 @@ namespace llvm {
/// MachineInstr.
bool isUnknown() const { return Idx == 0; }
- bool operator==(const DebugLoc &DL) { return Idx == DL.Idx; }
- bool operator!=(const DebugLoc &DL) { return !(*this == DL); }
+ bool operator==(const DebugLoc &DL) const { return Idx == DL.Idx; }
+ bool operator!=(const DebugLoc &DL) const { return !(*this == DL); }
};
// Partially specialize DenseMapInfo for DebugLocTyple.