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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175016 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h

index d064e7e2ad3a95e47b0076f26a6a35d5635d5a67..c8be27c291ceab3235238d07b50bb9e25b18b635 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);