Index: lib/Transform/Simplify.cpp =================================================================== --- lib/Transform/Simplify.cpp +++ lib/Transform/Simplify.cpp @@ -297,7 +297,7 @@ } /// Remove statements without side effects. - void removeUnnecessayStmts() { + void removeUnnecessaryStmts() { auto NumStmtsBefore = S->getSize(); S->simplifySCoP(true); assert(NumStmtsBefore >= S->getSize()); @@ -353,7 +353,7 @@ removeRedundantWrites(); DEBUG(dbgs() << "Removing statements without side effects...\n"); - removeUnnecessayStmts(); + removeUnnecessaryStmts(); if (isModified()) ScopsModified++;