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/Instrumentation/BoundsChecking.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/Instrumentation/BoundsChecking.cpp')
| -rw-r--r-- | gnu/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp b/gnu/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp index fd3dfd9af03..d4c8369fa9d 100644 --- a/gnu/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp +++ b/gnu/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp @@ -36,7 +36,7 @@ STATISTIC(ChecksAdded, "Bounds checks added"); STATISTIC(ChecksSkipped, "Bounds checks skipped"); STATISTIC(ChecksUnable, "Bounds checks unable to add"); -typedef IRBuilder<true, TargetFolder> BuilderTy; +typedef IRBuilder<TargetFolder> BuilderTy; namespace { struct BoundsChecking : public FunctionPass { @@ -185,9 +185,8 @@ bool BoundsChecking::runOnFunction(Function &F) { } bool MadeChange = false; - for (std::vector<Instruction*>::iterator i = WorkList.begin(), - e = WorkList.end(); i != e; ++i) { - Inst = *i; + for (Instruction *i : WorkList) { + Inst = i; Builder->SetInsertPoint(Inst); if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { |
