diff options
| author | 2017-01-14 19:55:43 +0000 | |
|---|---|---|
| committer | 2017-01-14 19:55:43 +0000 | |
| commit | bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch) | |
| tree | 309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/lib/Transforms/Utils/LowerSwitch.cpp | |
| parent | killp -a should not kill the window if only one pane. (diff) | |
| download | wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip | |
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/lib/Transforms/Utils/LowerSwitch.cpp')
| -rw-r--r-- | gnu/llvm/lib/Transforms/Utils/LowerSwitch.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gnu/llvm/lib/Transforms/Utils/LowerSwitch.cpp b/gnu/llvm/lib/Transforms/Utils/LowerSwitch.cpp index 52beb154249..5c07469869f 100644 --- a/gnu/llvm/lib/Transforms/Utils/LowerSwitch.cpp +++ b/gnu/llvm/lib/Transforms/Utils/LowerSwitch.cpp @@ -59,12 +59,6 @@ namespace { bool runOnFunction(Function &F) override; - void getAnalysisUsage(AnalysisUsage &AU) const override { - // This is a cluster of orthogonal Transforms - AU.addPreserved<UnifyFunctionExitNodes>(); - AU.addPreservedID(LowerInvokePassID); - } - struct CaseRange { ConstantInt* Low; ConstantInt* High; @@ -192,8 +186,8 @@ static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, } // Remove incoming values in the reverse order to prevent invalidating // *successive* index. - for (auto III = Indices.rbegin(), IIE = Indices.rend(); III != IIE; ++III) - PN->removeIncomingValue(*III); + for (unsigned III : reverse(Indices)) + PN->removeIncomingValue(III); } } |
