]> granicus.if.org Git - clang/commitdiff
Remove LVALUE / RVALUE workarounds
authorJF Bastien <jfbastien@apple.com>
Wed, 14 Aug 2019 22:48:12 +0000 (22:48 +0000)
committerJF Bastien <jfbastien@apple.com>
Wed, 14 Aug 2019 22:48:12 +0000 (22:48 +0000)
Summary: LLVM_HAS_RVALUE_REFERENCE_THIS and LLVM_LVALUE_FUNCTION shouldn't be needed anymore because the minimum compiler versions support them.

Subscribers: jkorous, dexonsmith, cfe-commits, llvm-commits, hans, thakis, chandlerc, rnk

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D66240

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368939 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h

index 864266e77eed154a69c75673edb26be8b3415ed1..bccdcf2d922859953180487de64da726537ddbe4 100644 (file)
@@ -167,7 +167,7 @@ public:
   const ProgramStateRef &getState() const { return State; }
 
   template <typename T>
-  Optional<T> getLocationAs() const LLVM_LVALUE_FUNCTION {
+  Optional<T> getLocationAs() const & {
     return Location.getAs<T>();
   }