diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:30:04 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:30:04 +0000 |
commit | c37e6c073436be77e90ef640c0e6627200ba19f7 (patch) | |
tree | ebcd38a39f18ed144d0818a795f1b2a34925aebb /lib/Analysis/CaptureTracking.cpp | |
parent | a6ace00520a9df552ecfec6557f830ef805bea37 (diff) | |
download | llvm-c37e6c073436be77e90ef640c0e6627200ba19f7.tar.gz llvm-c37e6c073436be77e90ef640c0e6627200ba19f7.tar.bz2 llvm-c37e6c073436be77e90ef640c0e6627200ba19f7.tar.xz |
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CaptureTracking.cpp')
-rw-r--r-- | lib/Analysis/CaptureTracking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CaptureTracking.cpp b/lib/Analysis/CaptureTracking.cpp index e5378d3695..1e864b2954 100644 --- a/lib/Analysis/CaptureTracking.cpp +++ b/lib/Analysis/CaptureTracking.cpp @@ -35,9 +35,9 @@ namespace { explicit SimpleCaptureTracker(bool ReturnCaptures) : ReturnCaptures(ReturnCaptures), Captured(false) {} - void tooManyUses() { Captured = true; } + void tooManyUses() override { Captured = true; } - bool captured(Use *U) { + bool captured(Use *U) override { if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) return false; |