[llvm-commits] [llvm] r56283 - /llvm/branches/ggreif/use-diet/lib/VMCore/Value.cpp
Gabor Greif
ggreif at gmail.com
Wed Sep 17 09:41:58 PDT 2008
Author: ggreif
Date: Wed Sep 17 11:41:57 2008
New Revision: 56283
URL: http://llvm.org/viewvc/llvm-project?rev=56283&view=rev
Log:
fix dereferencing of tagged pointer
Modified:
llvm/branches/ggreif/use-diet/lib/VMCore/Value.cpp
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Value.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Value.cpp?rev=56283&r1=56282&r2=56283&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Value.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Value.cpp Wed Sep 17 11:41:57 2008
@@ -287,7 +287,7 @@
//
void Value::uncheckedReplaceAllUsesWith(Value *New) {
while (!use_empty()) {
- Use &U = *UseList;
+ Use &U = *use_begin().U;
// Must handle Constants specially, we cannot call replaceUsesOfWith on a
// constant because they are uniqued.
if (Constant *C = dyn_cast<Constant>(U.getUser())) {
More information about the llvm-commits
mailing list