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 | db356eea26f693b6fe0165bb78afaa52cd3ef18e (patch) | |
tree | 94f7b34b919ff56344fcb0f85f9b8d215d1654d2 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 849fa11f15185ac2bf97814f46505ddd87b6218a (diff) | |
download | bcm5719-llvm-db356eea26f693b6fe0165bb78afaa52cd3ef18e.tar.gz bcm5719-llvm-db356eea26f693b6fe0165bb78afaa52cd3ef18e.zip |
Fix some warnings reported by gcc-4.3. Hopefully
this still compiles on windows - I can't test!
llvm-svn: 52488
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 7b87cb62da0..32a77e6f461 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/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 |