]> granicus.if.org Git - llvm/commitdiff
[StructurizeCFG] Add whitespace in getAnalysisUsage.
authorJustin Lebar <jlebar@google.com>
Tue, 22 Nov 2016 23:14:07 +0000 (23:14 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 22 Nov 2016 23:14:07 +0000 (23:14 +0000)
Summary:
"addRequired" and "addPreserved" look very similar when squished up next
to each other -- without the newline this code looked to me like it was
addRequired'ing DominatorTreeWrapperPass twice.

Reviewers: arsenm

Subscribers: wdng, llvm-commits

Differential Revision: https://reviews.llvm.org/D26996

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287720 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/StructurizeCFG.cpp

index 004287f0a4f931b0189901b01c2c034f9798ecbc..d6ad0831f7904396e175a1f6df1591a3f65a6298 100644 (file)
@@ -255,6 +255,7 @@ public:
     AU.addRequiredID(LowerSwitchID);
     AU.addRequired<DominatorTreeWrapperPass>();
     AU.addRequired<LoopInfoWrapperPass>();
+
     AU.addPreserved<DominatorTreeWrapperPass>();
     RegionPass::getAnalysisUsage(AU);
   }