From: JF Bastien Date: Wed, 14 Aug 2019 22:48:12 +0000 (+0000) Subject: Remove LVALUE / RVALUE workarounds X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68afe3d5dccef33e028c8a1f9609852396e7217a;p=clang Remove LVALUE / RVALUE workarounds 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 --- diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h index 864266e77e..bccdcf2d92 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h @@ -167,7 +167,7 @@ public: const ProgramStateRef &getState() const { return State; } template - Optional getLocationAs() const LLVM_LVALUE_FUNCTION { + Optional getLocationAs() const & { return Location.getAs(); }