]> granicus.if.org Git - clang/commitdiff
Microsoft's __uuidof operator returns a lvalue. Part 2.
authorFrancois Pichet <pichet2000@gmail.com>
Fri, 17 Dec 2010 02:38:13 +0000 (02:38 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Fri, 17 Dec 2010 02:38:13 +0000 (02:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122030 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ExprCXX.h

index 5cb0098cab6366ead35a82ad53a22c5f8dc79170..eea15effac3275ba8c98f406ba71758145fc9db5 100644 (file)
@@ -422,13 +422,13 @@ private:
 
 public:
   CXXUuidofExpr(QualType Ty, TypeSourceInfo *Operand, SourceRange R)
-    : Expr(CXXUuidofExprClass, Ty, VK_RValue, OK_Ordinary,
+    : Expr(CXXUuidofExprClass, Ty, VK_LValue, OK_Ordinary,
            false, Operand->getType()->isDependentType(),
            Operand->getType()->containsUnexpandedParameterPack()),
       Operand(Operand), Range(R) { }
   
   CXXUuidofExpr(QualType Ty, Expr *Operand, SourceRange R)
-    : Expr(CXXUuidofExprClass, Ty, VK_RValue, OK_Ordinary,
+    : Expr(CXXUuidofExprClass, Ty, VK_LValue, OK_Ordinary,
            false, Operand->isTypeDependent(),
            Operand->containsUnexpandedParameterPack()),
       Operand(Operand), Range(R) { }