[cfe-commits] r122021 - in /cfe/trunk: lib/AST/ExprClassification.cpp test/Parser/MicrosoftExtensions.c
Francois Pichet
pichet2000 at gmail.com
Thu Dec 16 18:00:06 PST 2010
Author: fpichet
Date: Thu Dec 16 20:00:06 2010
New Revision: 122021
URL: http://llvm.org/viewvc/llvm-project?rev=122021&view=rev
Log:
Microsoft's __uuidof operator returns a lvalue.
Modified:
cfe/trunk/lib/AST/ExprClassification.cpp
cfe/trunk/test/Parser/MicrosoftExtensions.c
Modified: cfe/trunk/lib/AST/ExprClassification.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprClassification.cpp?rev=122021&r1=122020&r2=122021&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprClassification.cpp (original)
+++ cfe/trunk/lib/AST/ExprClassification.cpp Thu Dec 16 20:00:06 2010
@@ -303,7 +303,7 @@
}
case Expr::CXXUuidofExprClass:
- return Cl::CL_PRValue;
+ return Cl::CL_LValue;
}
llvm_unreachable("unhandled expression kind in classification");
Modified: cfe/trunk/test/Parser/MicrosoftExtensions.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/MicrosoftExtensions.c?rev=122021&r1=122020&r2=122021&view=diff
==============================================================================
--- cfe/trunk/test/Parser/MicrosoftExtensions.c (original)
+++ cfe/trunk/test/Parser/MicrosoftExtensions.c Thu Dec 16 20:00:06 2010
@@ -77,6 +77,8 @@
C c;
// FIXME, this must not compile
_uuidof(c);
+
+ &_uuidof(0);
}
/* Microsoft attribute tests */
More information about the cfe-commits
mailing list