diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-28 05:33:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-28 05:33:32 +0000 |
commit | b746b82113df707df9555450991eab75b18ffa1b (patch) | |
tree | 1035bbcde0380c7ffc3c3957e0956ad9c47d62c3 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 3284d42c17a7f95a07b73e414b50b3d0e10733a1 (diff) |
Add back the capability to include nul characters in strings with
GetConstantStringInfo. This will hopefully restore llvm-gcc to
happy bootstrap land.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52851 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 65d2d6ba38..717ad34f40 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2594,7 +2594,7 @@ static bool isMemSrcFromString(SDOperand Src, std::string &Str, return false; GlobalVariable *GV = dyn_cast<GlobalVariable>(G->getGlobal()); - if (GV && GetConstantStringInfo(GV, Str)) { + if (GV && GetConstantStringInfo(GV, Str, SrcDelta, false)) { SrcOff += SrcDelta; return true; } |