Use isUnionType() predicate.

llvm-svn: 43281
This commit is contained in:
Devang Patel 2007-10-24 00:28:49 +00:00
parent c4e224e59c
commit e531ae687a
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ EmitOCUVectorElementExpr(const OCUVectorElementExpr *E) {
LValue CodeGenFunction::EmitMemberExpr(const MemberExpr *E) {
// FIXME: Handle union members.
if (E->getBase()->getType()->getAsUnionType()) {
if (E->getType()->isUnionType()) {
fprintf(stderr, "Unimplemented lvalue expr!\n");
E->dump(getContext().SourceMgr);
llvm::Type *Ty = llvm::PointerType::get(ConvertType(E->getType()));