diff options
author | Dan Gohman <gohman@apple.com> | 2007-10-03 19:26:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-10-03 19:26:29 +0000 |
commit | c731c97facb5ff56daceb724d75f1f14e8d01f39 (patch) | |
tree | 700408f7fbcfb3dd5005afb0399dff630d61948b /llvm/lib/VMCore/Value.cpp | |
parent | 8c43e41d9bf388195d4b1f32b569193c77ca404a (diff) | |
download | bcm5719-llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.tar.gz bcm5719-llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.zip |
Use empty() member functions when that's what's being tested for instead
of comparing begin() and end().
llvm-svn: 42585
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 0150c7e6e96..de6c16b5214 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp @@ -47,14 +47,14 @@ Value::~Value() { // still being referenced. The value in question should be printed as // a <badref> // - if (use_begin() != use_end()) { + if (!use_empty()) { DOUT << "While deleting: " << *Ty << " %" << Name << "\n"; for (use_iterator I = use_begin(), E = use_end(); I != E; ++I) DOUT << "Use still stuck around after Def is destroyed:" << **I << "\n"; } #endif - assert(use_begin() == use_end() && "Uses remain when a value is destroyed!"); + assert(use_empty() && "Uses remain when a value is destroyed!"); // If this value is named, destroy the name. This should not be in a symtab // at this point. |