If the attributes don't exist, just bail for now.
authorBill Wendling <isanbard@gmail.com>
Fri, 18 Jan 2013 21:56:07 +0000 (21:56 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 18 Jan 2013 21:56:07 +0000 (21:56 +0000)
llvm-svn: 172854

llvm/lib/IR/Attributes.cpp

index bb98358..5de1827 100644 (file)
@@ -253,7 +253,7 @@ AttrBuilder::AttrBuilder(AttributeSet AS, unsigned Idx)
       break;
     }
 
-  assert(AWI && "Cannot find index in attribute set!");
+  if (!AWI) return;
 
   uint64_t Mask = AWI->Attrs.Raw();