r368985 - Revert rL368939 "Remove LVALUE / RVALUE workarounds"

Russell Gallop via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 03:12:11 PDT 2019


Author: russell_gallop
Date: Thu Aug 15 03:12:11 2019
New Revision: 368985

URL: http://llvm.org/viewvc/llvm-project?rev=368985&view=rev
Log:
Revert rL368939 "Remove LVALUE / RVALUE workarounds"

This reverts commit cad8356d699b36c73abb267f65db575ddacbd652.

To unbreak Windows bots

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h?rev=368985&r1=368984&r2=368985&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h Thu Aug 15 03:12:11 2019
@@ -167,7 +167,7 @@ public:
   const ProgramStateRef &getState() const { return State; }
 
   template <typename T>
-  Optional<T> getLocationAs() const & {
+  Optional<T> getLocationAs() const LLVM_LVALUE_FUNCTION {
     return Location.getAs<T>();
   }
 




More information about the cfe-commits mailing list