Add missing const specifier to a const method.
[oota-llvm.git] / lib / IR / DebugLoc.cpp
index 43360d38662cffbc1c83af68c328b5f9149fa1b5..e8bdccebae96d5445abd9fd103d61466e14055c5 100644 (file)
@@ -76,7 +76,7 @@ MDNode *DebugLoc::getScopeNode(const LLVMContext &Ctx) const {
   return getScope(Ctx);
 }
 
-DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) {
+DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) const {
   const MDNode *Scope = getScopeNode(Ctx);
   DISubprogram SP = getDISubprogram(Scope);
   if (SP.isSubprogram()) {