aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-18 21:56:07 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-18 21:56:07 +0000
commitaec710675febb13d3cf4a7141d2658a3b1797cfd (patch)
tree19d5b95cc13cbeb53033eb75f6feaa2004df9dd0 /lib/IR
parent1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f (diff)
downloadexternal_llvm-aec710675febb13d3cf4a7141d2658a3b1797cfd.zip
external_llvm-aec710675febb13d3cf4a7141d2658a3b1797cfd.tar.gz
external_llvm-aec710675febb13d3cf4a7141d2658a3b1797cfd.tar.bz2
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
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index bb98358..5de1827 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();