summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-11 18:44:13 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-11 18:51:45 +0000
commit0d908e1252d4b1de4bdd91e2a2857093621b2a0b (patch)
tree24fd7d62042b8489f64219911af4974b721c9e72 /llvm/lib
parent8a44d4850d268fdcc61b95fdd32233b7a3a15e9b (diff)
downloadbcm5719-llvm-0d908e1252d4b1de4bdd91e2a2857093621b2a0b.tar.gz
bcm5719-llvm-0d908e1252d4b1de4bdd91e2a2857093621b2a0b.zip
Make FileCheckNumericVariable::getDefLineNumber const. NFC
Fixes cppcheck warning.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/FileCheckImpl.h2
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
OpenPOWER on IntegriCloud