[llvm-commits] [llvm] r66395 - /llvm/trunk/lib/VMCore/Instructions.cpp

Chris Lattner sabre at nondot.org
Sun Mar 8 21:56:22 PDT 2009


Author: lattner
Date: Sun Mar  8 23:56:22 2009
New Revision: 66395

URL: http://llvm.org/viewvc/llvm-project?rev=66395&view=rev
Log:
fix Analysis/BasicAA/2004-12-08-BasicAACrash.ll by allowing opaque types.

Modified:
    llvm/trunk/lib/VMCore/Instructions.cpp

Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=66395&r1=66394&r2=66395&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Sun Mar  8 23:56:22 2009
@@ -1058,8 +1058,10 @@
     return Agg;
   
   // If there is at least one index, the top level type must be sized, otherwise
-  // it cannot be 'stepped over'.
-  if (!Agg->isSized())
+  // it cannot be 'stepped over'.  We explicitly allow abstract types (those
+  // that contain opaque types) under the assumption that it will be resolved to
+  // a sane type later.
+  if (!Agg->isSized() && !Agg->isAbstract())
     return 0;
 
   unsigned CurIdx = 1;





More information about the llvm-commits mailing list