Attributes Rewrite
[oota-llvm.git] / lib / VMCore / Verifier.cpp
index 5d431df281a70e90b9c5f039167f0c545d5d8ee7..da1a452d3e23e1db9162db05cb2b08f3def58079 100644 (file)
@@ -618,7 +618,7 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT,
   Attributes::Builder NotFn(FAttrs);
   NotFn.removeFunctionOnlyAttrs();
   Assert1(!NotFn.hasAttributes(), "Attributes '" +
-          Attributes::get(NotFn).getAsString() +
+          Attributes::get(V->getContext(), NotFn).getAsString() +
           "' do not apply to the function!", V);
 
   // Check for mutually incompatible attributes.