Add a default empty string to the 'value' of a string attribute.
authorBill Wendling <isanbard@gmail.com>
Tue, 12 Feb 2013 23:14:31 +0000 (23:14 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 12 Feb 2013 23:14:31 +0000 (23:14 +0000)
llvm-svn: 175016

llvm/include/llvm/IR/Attributes.h

index d064e7e..c8be27c 100644 (file)
@@ -418,7 +418,7 @@ public:
   AttrBuilder &addAttribute(Attribute A);
 
   /// \brief Add the target-dependent attribute to the builder.
-  AttrBuilder &addAttribute(StringRef A, StringRef V);
+  AttrBuilder &addAttribute(StringRef A, StringRef V = StringRef());
 
   /// \brief Remove an attribute from the builder.
   AttrBuilder &removeAttribute(Attribute::AttrKind Val);