Oops...I committed too much.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2009-03-13 04:39:26 +00:00
parent c7a09ab311
commit 0582ae99ba
14 changed files with 233 additions and 254 deletions

View File

@@ -2931,11 +2931,8 @@ static bool isMemSrcFromString(SDValue Src, std::string &Str) {
return false;
GlobalVariable *GV = dyn_cast<GlobalVariable>(G->getGlobal());
if (GV) {
const char *SI = GetConstantStringInfo(GV, SrcDelta, false);
Str = (SI ? SI : "");
if (!Str.empty()) return true;
}
if (GV && GetConstantStringInfo(GV, Str, SrcDelta, false))
return true;
return false;
}