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://review.tizen.org/git/?a=commitdiff_plain;h=613c3a8e97e1db09cbbcd4125da2e3e233346532;p=platform%2Fupstream%2Fllvm.git Add a default empty string to the 'value' of a string attribute. llvm-svn: 175016 --- diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h index d064e7e..c8be27c 100644 --- a/llvm/include/llvm/IR/Attributes.h +++ b/llvm/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);