diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-10 23:52:03 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-10 23:52:03 +0000 |
commit | 0937103368992af8d3d8032d31a7d152aeae32d5 (patch) | |
tree | 7c696840b9a28e8b6f4449cf156342120d280f0e /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 7907b6950bd6c7b1dc2b19930ff81371013000f8 (diff) |
Added a parameter to control whether Constant::getStringValue() would chop
off the result string at the first null terminator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 96694da971..f1afeb93e3 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1941,7 +1941,7 @@ void SelectionDAGLowering::visitMemIntrinsic(CallInst &I, unsigned Op) { if (G) { GlobalVariable *GV = dyn_cast<GlobalVariable>(G->getGlobal()); if (GV) { - Str = GV->getStringValue(); + Str = GV->getStringValue(false); if (!Str.empty()) { CopyFromStr = true; SrcOff += SrcDelta; |