]> granicus.if.org Git - llvm/commitdiff
[Metadata] Fix typos in comments. NFC
authorCraig Topper <craig.topper@gmail.com>
Thu, 27 Apr 2017 05:48:29 +0000 (05:48 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 27 Apr 2017 05:48:29 +0000 (05:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301517 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Metadata.cpp

index 7228de3d23702d140e2254f86a24f25937fd1caf..2411dc5ce7dc27c530dfd9bb34834af8f43efc88 100644 (file)
@@ -967,7 +967,7 @@ static void addRange(SmallVectorImpl<ConstantInt *> &EndPoints,
 
 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) {
   // Given two ranges, we want to compute the union of the ranges. This
-  // is slightly complitade by having to combine the intervals and merge
+  // is slightly complicated by having to combine the intervals and merge
   // the ones that overlap.
 
   if (!A || !B)
@@ -976,7 +976,7 @@ MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) {
   if (A == B)
     return A;
 
-  // First, walk both lists in older of the lower boundary of each interval.
+  // First, walk both lists in order of the lower boundary of each interval.
   // At each step, try to merge the new interval to the last one we adedd.
   SmallVector<ConstantInt *, 4> EndPoints;
   int AI = 0;