diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-14 16:56:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-14 16:56:32 +0000 |
commit | 8d44b998448960c0f6314ebbcd67bee4db86b9c7 (patch) | |
tree | 9c8e6ad79ea5fe78373236535c22f4f301d35dd2 /llvm/lib/VMCore/Value.cpp | |
parent | 1680fb1617681ab0a6d43ab0c94dfd8bde739f08 (diff) | |
download | bcm5719-llvm-8d44b998448960c0f6314ebbcd67bee4db86b9c7.tar.gz bcm5719-llvm-8d44b998448960c0f6314ebbcd67bee4db86b9c7.zip |
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
llvm-svn: 572
Diffstat (limited to 'llvm/lib/VMCore/Value.cpp')
-rw-r--r-- | llvm/lib/VMCore/Value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index e48341ef51a..a41262d0c64 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/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 |