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
This commit is contained in:
Bill Wendling 2013-01-18 21:56:07 +00:00
parent 1b0c54f1c5
commit aec710675f

View 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();