@@ -294,9 +294,9 @@ void DebugInfoFinder::processSubprogram(DISubprogram *SP) {
294294 // just DISubprogram's, referenced from anywhere within the Function being
295295 // cloned prior to calling MapMetadata / RemapInstruction to avoid their
296296 // duplication later as DICompileUnit's are also directly referenced by
297- // llvm.dbg.cu list. Thefore we need to collect DICompileUnit's here as well.
298- // Also, DICompileUnit's may reference DISubprogram's too and therefore need
299- // to be at least looked through.
297+ // llvm.dbg.cu list. Therefore we need to collect DICompileUnit's here as
298+ // well. Also, DICompileUnit's may reference DISubprogram's too and therefore
299+ // need to be at least looked through.
300300 processCompileUnit (SP->getUnit ());
301301 processType (SP->getType ());
302302 for (auto *Element : SP->getTemplateParams ()) {
@@ -377,7 +377,7 @@ bool DebugInfoFinder::addScope(DIScope *Scope) {
377377
378378// / Recursively handle DILocations in followup metadata etc.
379379// /
380- // / TODO: If for example a followup loop metadata would refence itself this
380+ // / TODO: If for example a followup loop metadata would reference itself this
381381// / function would go into infinite recursion. We do not expect such cycles in
382382// / the loop metadata (except for the self-referencing first element
383383// / "LoopID"). However, we could at least handle such situations more gracefully
@@ -679,7 +679,7 @@ class DebugTypeInfoRemoval {
679679 auto Variables = nullptr ;
680680 auto TemplateParams = nullptr ;
681681
682- // Make a distinct DISubprogram, for situations that warrent it.
682+ // Make a distinct DISubprogram, for situations that warrant it.
683683 auto distinctMDSubprogram = [&]() {
684684 return DISubprogram::getDistinct (
685685 MDS->getContext (), FileAndScope, MDS->getName (), LinkageName,
@@ -2043,7 +2043,7 @@ void at::remapAssignID(DenseMap<DIAssignID *, DIAssignID *> &Map,
20432043 I.setMetadata (LLVMContext::MD_DIAssignID, GetNewID (ID));
20442044}
20452045
2046- // / Collect constant properies (base, size, offset) of \p StoreDest.
2046+ // / Collect constant properties (base, size, offset) of \p StoreDest.
20472047// / Return std::nullopt if any properties are not constants or the
20482048// / offset from the base pointer is negative.
20492049static std::optional<AssignmentInfo>
@@ -2329,7 +2329,7 @@ PreservedAnalyses AssignmentTrackingPass::run(Function &F,
23292329 return PreservedAnalyses::all ();
23302330
23312331 // Record that this module uses assignment tracking. It doesn't matter that
2332- // some functons in the module may not use it - the debug info in those
2332+ // some functions in the module may not use it - the debug info in those
23332333 // functions will still be handled properly.
23342334 setAssignmentTrackingModuleFlag (*F.getParent ());
23352335
0 commit comments