Skip to content

Commit 7a831f1

Browse files
committed
Slightly simpler
1 parent 67f06b3 commit 7a831f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skeleton/Skeleton.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace {
99

1010
struct SkeletonPass : public PassInfoMixin<SkeletonPass> {
1111
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM) {
12-
for (auto &F : M.functions()) {
12+
for (auto &F : M) {
1313
errs() << "I saw a function called " << F.getName() << "!\n";
1414
}
1515
return PreservedAnalyses::all();

0 commit comments

Comments
 (0)