diff options
author | Duncan Sands <baldrick@free.fr> | 2008-06-19 08:47:31 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-06-19 08:47:31 +0000 |
commit | 9954c76f2c89ab3c70bfe8222534621a86f9085a (patch) | |
tree | 34ce9bf1bc053d7e389cb3c0de83867d8bb30938 /lib/Analysis/ValueTracking.cpp | |
parent | 32a3ac79116ce93471cd18ede24452c6af5b290b (diff) |
Fix some warnings reported by gcc-4.3. Hopefully
this still compiles on windows - I can't test!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | lib/Analysis/ValueTracking.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index 7b87cb62da..32a77e6f46 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp @@ -871,7 +871,7 @@ Value *llvm::FindInsertedValue(Value *V, const unsigned *idx_begin, const unsigned *req_idx = idx_begin; for (const unsigned *i = I->idx_begin(), *e = I->idx_end(); i != e; ++i, ++req_idx) { - if (req_idx == idx_end) + if (req_idx == idx_end) { if (InsertBefore) // The requested index identifies a part of a nested aggregate. Handle // this specially. For example, @@ -887,6 +887,7 @@ Value *llvm::FindInsertedValue(Value *V, const unsigned *idx_begin, else // We can't handle this without inserting insertvalues return 0; + } // This insert value inserts something else than what we are looking for. // See if the (aggregrate) value inserted into has the value we are |