From b02eadf660f98b621d63fc60374d160aa4d53cec Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 13 Mar 2009 04:37:11 +0000 Subject: Temporarily XFAIL this test. llvm-svn: 66866 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 71560fe2ae6..4afc3b5c3ec 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2931,8 +2931,11 @@ static bool isMemSrcFromString(SDValue Src, std::string &Str) { return false; GlobalVariable *GV = dyn_cast(G->getGlobal()); - if (GV && GetConstantStringInfo(GV, Str, SrcDelta, false)) - return true; + if (GV) { + const char *SI = GetConstantStringInfo(GV, SrcDelta, false); + Str = (SI ? SI : ""); + if (!Str.empty()) return true; + } return false; } -- cgit v1.2.3