From: Bill Wendling Date: Tue, 12 Feb 2013 23:14:31 +0000 (+0000) Subject: Add a default empty string to the 'value' of a string attribute. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ad19d9c4228718b0ac167d0dfa013d14c3c9f135;p=oota-llvm.git Add a default empty string to the 'value' of a string attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175016 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index d064e7e2ad3..c8be27c291c 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -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);