[llvm] bc0d169 - Fix missing argument introduced by D108788

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 1 23:02:50 PDT 2021


Author: Arthur Eubanks
Date: 2021-09-01T23:00:58-07:00
New Revision: bc0d16969adfcd9bf5a07708b93da475e04c74a8

URL: https://github.com/llvm/llvm-project/commit/bc0d16969adfcd9bf5a07708b93da475e04c74a8
DIFF: https://github.com/llvm/llvm-project/commit/bc0d16969adfcd9bf5a07708b93da475e04c74a8.diff

LOG: Fix missing argument introduced by D108788

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D109132

Added: 
    

Modified: 
    llvm/include/llvm/IR/Attributes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index d81f67deb8ea2..a14a24795a4a2 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/include/llvm/IR/Attributes.h
@@ -472,7 +472,7 @@ class AttributeList {
   LLVM_NODISCARD AttributeList
   addAttribute(LLVMContext &C, unsigned Index, StringRef Kind,
                StringRef Value = StringRef()) const {
-    return addAttributeAtIndex(C, Index, Kind);
+    return addAttributeAtIndex(C, Index, Kind, Value);
   }
 
   /// Add an attribute to the attribute set at the given index.


        


More information about the llvm-commits mailing list