diff --git a/llvm/include/llvm/IR/DebugProgramInstruction.h b/llvm/include/llvm/IR/DebugProgramInstruction.h index 8d7427cc67e2d..f5aa34678a53a 100644 --- a/llvm/include/llvm/IR/DebugProgramInstruction.h +++ b/llvm/include/llvm/IR/DebugProgramInstruction.h @@ -398,8 +398,8 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser { } }; - bool isDbgDeclare() { return Type == LocationType::Declare; } - bool isDbgValue() { return Type == LocationType::Value; } + bool isDbgDeclare() const { return Type == LocationType::Declare; } + bool isDbgValue() const { return Type == LocationType::Value; } /// Get the locations corresponding to the variable referenced by the debug /// info intrinsic. Depending on the intrinsic, this could be the