[llvm-commits] CVS: llvm/lib/VMCore/Value.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 29 00:38:02 PDT 2003
Changes in directory llvm/lib/VMCore:
Value.cpp updated: 1.33 -> 1.34
---
Log message:
Fix bug: Linker/2003-08-28-TypeResolvesGlobal3.ll
Use new replaceAllUsesWith stuff in a way that works even though types have not yet been propagated
---
Diffs of the changes:
Index: llvm/lib/VMCore/Value.cpp
diff -u llvm/lib/VMCore/Value.cpp:1.33 llvm/lib/VMCore/Value.cpp:1.34
--- llvm/lib/VMCore/Value.cpp:1.33 Fri Aug 29 00:09:37 2003
+++ llvm/lib/VMCore/Value.cpp Fri Aug 29 00:37:22 2003
@@ -78,7 +78,7 @@
// Must handle Constants specially, we cannot call replaceUsesOfWith on a
// constant!
if (Constant *C = dyn_cast<Constant>(Use)) {
- C->replaceUsesOfWithOnConstant(this, New);
+ C->replaceUsesOfWithOnConstant(this, New, true);
} else {
Use->replaceUsesOfWith(this, New);
}
More information about the llvm-commits
mailing list