[llvm-commits] CVS: llvm/lib/VMCore/iMemory.cpp
John Criswell
criswell at cs.uiuc.edu
Thu May 6 17:17:04 PDT 2004
Changes in directory llvm/lib/VMCore:
iMemory.cpp updated: 1.37 -> 1.38
---
Log message:
Don't call getForwardedType() twice, as recommended by Chris.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/VMCore/iMemory.cpp
diff -u llvm/lib/VMCore/iMemory.cpp:1.37 llvm/lib/VMCore/iMemory.cpp:1.38
--- llvm/lib/VMCore/iMemory.cpp:1.37 Thu May 6 16:18:08 2004
+++ llvm/lib/VMCore/iMemory.cpp Thu May 6 17:15:47 2004
@@ -161,8 +161,8 @@
// of being refined to another type (and hence, may have dropped all
// references to what it was using before). So, use the new forwarded
// type.
- if (Ptr->getForwardedType()) {
- Ptr = Ptr->getForwardedType();
+ if (const Type * Ty = Ptr->getForwardedType()) {
+ Ptr = Ty;
}
}
return CurIdx == Idx.size() ? Ptr : 0;
More information about the llvm-commits
mailing list