[cfe-commits] r43281 - /cfe/trunk/CodeGen/CGExpr.cpp

Devang Patel dpatel at apple.com
Tue Oct 23 17:28:51 PDT 2007


Author: dpatel
Date: Tue Oct 23 19:28:49 2007
New Revision: 43281

URL: http://llvm.org/viewvc/llvm-project?rev=43281&view=rev
Log:
Use isUnionType() predicate.

Modified:
    cfe/trunk/CodeGen/CGExpr.cpp

Modified: cfe/trunk/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=43281&r1=43280&r2=43281&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGExpr.cpp Tue Oct 23 19:28:49 2007
@@ -385,7 +385,7 @@
 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()));





More information about the cfe-commits mailing list