[llvm-commits] CVS: llvm/lib/Transforms/IPO/GlobalConstifier.cpp

LLVM llvm at cs.uiuc.edu
Sat Jul 17 17:26:07 PDT 2004



Changes in directory llvm/lib/Transforms/IPO:

GlobalConstifier.cpp updated: 1.2 -> 1.3

---
Log message:

bug 122: http://llvm.cs.uiuc.edu/PR122 :
- Replace ConstantPointerRef usage with GlobalValue usage


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Transforms/IPO/GlobalConstifier.cpp
diff -u llvm/lib/Transforms/IPO/GlobalConstifier.cpp:1.2 llvm/lib/Transforms/IPO/GlobalConstifier.cpp:1.3
--- llvm/lib/Transforms/IPO/GlobalConstifier.cpp:1.2	Fri Feb 27 12:09:25 2004
+++ llvm/lib/Transforms/IPO/GlobalConstifier.cpp	Sat Jul 17 19:25:57 2004
@@ -48,8 +48,8 @@
       if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
         if (isStoredThrough(CE))
           return true;
-      } else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(C)) {
-        if (isStoredThrough(CPR)) return true;
+      } else if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) {
+        if (isStoredThrough(GV)) return true;
       } else {
         // Must be an element of a constant array or something.
         return true;





More information about the llvm-commits mailing list