[llvm] 74dd95f - [TableGen][NFC] Fix copy/paste error in comment

Fraser Cormack via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 10:45:35 PDT 2022


Author: Fraser Cormack
Date: 2022-04-11T18:29:29+01:00
New Revision: 74dd95face3fc7904fa9b566cd819d3de0eeb881

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

LOG: [TableGen][NFC] Fix copy/paste error in comment

Added: 
    

Modified: 
    llvm/include/llvm/TableGen/Record.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h
index cc7ad2d754993..f17fa5a0a61f3 100644
--- a/llvm/include/llvm/TableGen/Record.h
+++ b/llvm/include/llvm/TableGen/Record.h
@@ -1716,8 +1716,8 @@ class Record {
   StringRef getValueAsString(StringRef FieldName) const;
 
   /// This method looks up the specified field and returns
-  /// its value as a string, throwing an exception if the field if the value is
-  /// not a string and llvm::Optional() if the field does not exist.
+  /// its value as a string, throwing an exception if the value is not a string
+  /// and llvm::Optional() if the field does not exist.
   llvm::Optional<StringRef> getValueAsOptionalString(StringRef FieldName) const;
 
   /// This method looks up the specified field and returns


        


More information about the llvm-commits mailing list