[PATCH] D15174: [MSVC] Fix for http://llvm.org/PR25636: indexed accessor property not supported correctly.

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 6 20:33:19 PST 2015


ABataev marked 2 inline comments as done.

================
Comment at: lib/Sema/SemaPseudoObject.cpp:232
@@ -231,3 +231,3 @@
     /// Return true if assignments have a non-void result.
-    bool CanCaptureValue(Expr *exp) {
+    bool CanCaptureValue(Expr *exp) const {
       if (exp->isGLValue())
----------------
rjmccall wrote:
> Just make this static.
Ok

================
Comment at: lib/Sema/SemaPseudoObject.cpp:464
@@ -461,1 +463,3 @@
+  if (useSetterResultAsExprResult(result.get()))
+    setResultToLastSemantic();
 
----------------
rjmccall wrote:
> This will leave the result as the captured set value if it can't capture the setter result.  Is that desired?
The fact that the value can be captured must be checked in useSetterResultAsExprResult()


http://reviews.llvm.org/D15174





More information about the cfe-commits mailing list