summaryrefslogtreecommitdiff
path: root/tools/bugpoint/CrashDebugger.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-12-25 06:56:22 +0000
committerBill Wendling <isanbard@gmail.com>2011-12-25 06:56:22 +0000
commit467ef21cafa8be9c62f4adc70a04496607336cd8 (patch)
treef0039d9741a572a415eb0c5a869c5a5f22b60b61 /tools/bugpoint/CrashDebugger.cpp
parentaba65b05fc5dd8649725431e38359b7fa1ab59e8 (diff)
downloadllvm-467ef21cafa8be9c62f4adc70a04496607336cd8.tar.gz
llvm-467ef21cafa8be9c62f4adc70a04496607336cd8.tar.bz2
llvm-467ef21cafa8be9c62f4adc70a04496607336cd8.tar.xz
Add braces to remove silly warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp
index cdb100b8d5..aed16f47e0 100644
--- a/tools/bugpoint/CrashDebugger.cpp
+++ b/tools/bugpoint/CrashDebugger.cpp
@@ -569,7 +569,7 @@ static bool DebugACrash(BugDriver &BD,
for (Function::const_iterator BI = FI->begin(), E = FI->end(); BI != E;
++BI)
for (BasicBlock::const_iterator I = BI->begin(), E = --BI->end();
- I != E; ++I, ++CurInstructionNum)
+ I != E; ++I, ++CurInstructionNum) {
if (InstructionsToSkipBeforeDeleting) {
--InstructionsToSkipBeforeDeleting;
} else {
@@ -594,6 +594,7 @@ static bool DebugACrash(BugDriver &BD,
// one.
delete M;
}
+ }
if (InstructionsToSkipBeforeDeleting) {
InstructionsToSkipBeforeDeleting = 0;