[llvm] r241966 - Cleanup a couple of comments in DIBuilder.cpp

Adrian Prantl aprantl at apple.com
Fri Jul 10 16:26:02 PDT 2015


Author: adrian
Date: Fri Jul 10 18:26:02 2015
New Revision: 241966

URL: http://llvm.org/viewvc/llvm-project?rev=241966&view=rev
Log:
Cleanup a couple of comments in DIBuilder.cpp

Modified:
    llvm/trunk/lib/IR/DIBuilder.cpp

Modified: llvm/trunk/lib/IR/DIBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DIBuilder.cpp?rev=241966&r1=241965&r2=241966&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DIBuilder.cpp (original)
+++ llvm/trunk/lib/IR/DIBuilder.cpp Fri Jul 10 18:26:02 2015
@@ -595,7 +595,7 @@ DILocalVariable *DIBuilder::createLocalV
     DIType *Ty, bool AlwaysPreserve, unsigned Flags, unsigned ArgNo) {
   // FIXME: Why getNonCompileUnitScope()?
   // FIXME: Why is "!Context" okay here?
-  // FIXME: WHy doesn't this check for a subprogram or lexical block (AFAICT
+  // FIXME: Why doesn't this check for a subprogram or lexical block (AFAICT
   // the only valid scopes)?
   DIScope *Context = getNonCompileUnitScope(Scope);
 
@@ -603,7 +603,7 @@ DILocalVariable *DIBuilder::createLocalV
       VMContext, Tag, cast_or_null<DILocalScope>(Context), Name, File, LineNo,
       DITypeRef::get(Ty), ArgNo, Flags);
   if (AlwaysPreserve) {
-    // The optimizer may remove local variable. If there is an interest
+    // The optimizer may remove local variables. If there is an interest
     // to preserve variable info in such situation then stash it in a
     // named mdnode.
     DISubprogram *Fn = getDISubprogram(Scope);
@@ -867,7 +867,7 @@ void DIBuilder::replaceArrays(DIComposit
   if (!T->isResolved())
     return;
 
-  // If "T" is resolved, it may be due to a self-reference cycle.  Track the
+  // If T is resolved, it may be due to a self-reference cycle.  Track the
   // arrays explicitly if they're unresolved, or else the cycles will be
   // orphaned.
   if (Elements)





More information about the llvm-commits mailing list