[llvm-commits] [llvm] r172854 - /llvm/trunk/lib/IR/Attributes.cpp
Bill Wendling
isanbard at gmail.com
Fri Jan 18 13:56:07 PST 2013
Author: void
Date: Fri Jan 18 15:56:07 2013
New Revision: 172854
URL: http://llvm.org/viewvc/llvm-project?rev=172854&view=rev
Log:
If the attributes don't exist, just bail for now.
Modified:
llvm/trunk/lib/IR/Attributes.cpp
Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=172854&r1=172853&r2=172854&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Fri Jan 18 15:56:07 2013
@@ -253,7 +253,7 @@
break;
}
- assert(AWI && "Cannot find index in attribute set!");
+ if (!AWI) return;
uint64_t Mask = AWI->Attrs.Raw();
More information about the llvm-commits
mailing list