Skip to content

Commit 743e70b

Browse files
authored
[DebugInfo][NFC] Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare} (llvm#105570)
Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare}.
1 parent 5bbd598 commit 743e70b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/IR/DebugProgramInstruction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
398398
}
399399
};
400400

401-
bool isDbgDeclare() { return Type == LocationType::Declare; }
402-
bool isDbgValue() { return Type == LocationType::Value; }
401+
bool isDbgDeclare() const { return Type == LocationType::Declare; }
402+
bool isDbgValue() const { return Type == LocationType::Value; }
403403

404404
/// Get the locations corresponding to the variable referenced by the debug
405405
/// info intrinsic. Depending on the intrinsic, this could be the

0 commit comments

Comments
 (0)