Fix for PR1023 by Dan Gohman.

llvm-svn: 32003
This commit is contained in:
Evan Cheng 2006-11-29 01:58:12 +00:00
parent f26e88cfa4
commit 0be56fab68

View File

@ -3376,7 +3376,7 @@ void SelectionDAGLowering::visitMemIntrinsic(CallInst &I, unsigned Op) {
}
if (G) {
GlobalVariable *GV = dyn_cast<GlobalVariable>(G->getGlobal());
if (GV) {
if (GV && GV->isConstant()) {
Str = GV->getStringValue(false);
if (!Str.empty()) {
CopyFromStr = true;