aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Value.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-14 16:56:32 +0000
committerChris Lattner <sabre@nondot.org>2001-09-14 16:56:32 +0000
commit46cbff625eb9593cf9ddac415c39311a54aa27fa (patch)
treefce30542e012b16622bbb07c396c9c6c9d3cd5b3 /lib/VMCore/Value.cpp
parent78a81a24e148ec0e24b9c3253af0126f7b1f0c8b (diff)
Chris seems fond of #include <vector>. Fix these. Also convert use list in
Value to a vector instead of a list. Move SchedGraph.h & SchedPriorities.h into lib/CodeGen/InstrScheduling git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Value.cpp')
-rw-r--r--lib/VMCore/Value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp
index e48341ef51..a41262d0c6 100644
--- a/lib/VMCore/Value.cpp
+++ b/lib/VMCore/Value.cpp
@@ -1,6 +1,6 @@
//===-- Value.cpp - Implement the Value class -----------------------------===//
//
-// This file implements the Value class.
+// This file implements the Value, User, and SymTabValue classes.
//
//===----------------------------------------------------------------------===//
@@ -44,7 +44,7 @@ void Value::replaceAllUsesWith(Value *D) {
assert(D && "Value::replaceAllUsesWith(<null>) is invalid!");
assert(D != this && "V->replaceAllUsesWith(V) is NOT valid!");
while (!Uses.empty()) {
- User *Use = Uses.front();
+ User *Use = Uses.back();
#ifndef NDEBUG
unsigned NumUses = Uses.size();
#endif