[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Evan Cheng
evan.cheng at apple.com
Tue Nov 28 17:58:27 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.323 -> 1.324
---
Log message:
Fix for PR1023: http://llvm.org/PR1023 by Dan Gohman.
---
Diffs of the changes: (+1 -1)
SelectionDAGISel.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.323 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.324
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.323 Tue Nov 28 19:38:07 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Tue Nov 28 19:58:12 2006
@@ -3376,7 +3376,7 @@
}
if (G) {
GlobalVariable *GV = dyn_cast<GlobalVariable>(G->getGlobal());
- if (GV) {
+ if (GV && GV->isConstant()) {
Str = GV->getStringValue(false);
if (!Str.empty()) {
CopyFromStr = true;
More information about the llvm-commits
mailing list