Skip to content

Commit

Permalink
[DebugInfo][NFC] Constify debug DbgVariableRecord::{isDbgValue,isDbgD…
Browse files Browse the repository at this point in the history
…eclare} (llvm#105570)

Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare}.
  • Loading branch information
enferex authored and cjdb committed Aug 23, 2024
1 parent 20a59ed commit a9fdefd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/include/llvm/IR/DebugProgramInstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9fdefd

Please sign in to comment.