diff options
-rw-r--r-- | llvm/lib/Support/FileCheckImpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/FileCheckImpl.h b/llvm/lib/Support/FileCheckImpl.h index 06ce8301cec..0fd8523bef8 100644 --- a/llvm/lib/Support/FileCheckImpl.h +++ b/llvm/lib/Support/FileCheckImpl.h @@ -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 |