Microsoft's __uuidof operator returns a lvalue.

llvm-svn: 122021
This commit is contained in:
Francois Pichet 2010-12-17 02:00:06 +00:00
parent 7ac81906ea
commit 4f64c5aa70
2 changed files with 3 additions and 1 deletions

View File

@ -303,7 +303,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) {
}
case Expr::CXXUuidofExprClass:
return Cl::CL_PRValue;
return Cl::CL_LValue;
}
llvm_unreachable("unhandled expression kind in classification");

View File

@ -77,6 +77,8 @@ void uuidof_test2()
C c;
// FIXME, this must not compile
_uuidof(c);
&_uuidof(0);
}
/* Microsoft attribute tests */