Make FileCheckNumericVariable::getDefLineNumber const. NFC

Fixes cppcheck warning.
This commit is contained in:
Simon Pilgrim 2019-11-11 18:44:13 +00:00
parent 8a44d4850d
commit 0d908e1252
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public:
/// \returns the line number where this variable is defined, if any, or None
/// if defined before input is parsed.
Optional<size_t> getDefLineNumber() { return DefLineNumber; }
Optional<size_t> getDefLineNumber() const { return DefLineNumber; }
};
/// Class representing the use of a numeric variable in the AST of an