diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-05 10:21:48 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-05 10:21:48 +0000 |
commit | 2e816f0d562294c82b9fb31762371c59654c71e1 (patch) | |
tree | 28306c9bbf3e3c0c1787b67715c1916c4959fca8 /lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | 1a6eca243f9274b9b371b7306fa939568ce5c37f (diff) | |
download | llvm-2e816f0d562294c82b9fb31762371c59654c71e1.tar.gz llvm-2e816f0d562294c82b9fb31762371c59654c71e1.tar.bz2 llvm-2e816f0d562294c82b9fb31762371c59654c71e1.tar.xz |
[C++11] Make this interface accept const Use pointers and use override
to ensure we don't mess up any of the overrides. Necessary for cleaning
up the Value use iterators and enabling range-based traversing of use
lists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 68eca52991..cb565d0814 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp @@ -344,7 +344,7 @@ namespace { void tooManyUses() override { Captured = true; } - bool captured(Use *U) override { + bool captured(const Use *U) override { CallSite CS(U->getUser()); if (!CS.getInstruction()) { Captured = true; return true; } |