From aec710675febb13d3cf4a7141d2658a3b1797cfd Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 18 Jan 2013 21:56:07 +0000 Subject: [PATCH] If the attributes don't exist, just bail for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172854 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index bb98358a0ab..5de18272ffb 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -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();