forked from OSchip/llvm-project
Microsoft's __uuidof operator returns a lvalue.
llvm-svn: 122021
This commit is contained in:
parent
7ac81906ea
commit
4f64c5aa70
|
@ -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");
|
||||
|
|
|
@ -77,6 +77,8 @@ void uuidof_test2()
|
|||
C c;
|
||||
// FIXME, this must not compile
|
||||
_uuidof(c);
|
||||
|
||||
&_uuidof(0);
|
||||
}
|
||||
|
||||
/* Microsoft attribute tests */
|
||||
|
|
Loading…
Reference in New Issue