mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 03:28:35 +00:00
.string adds an implicit zero at the end. This is not what we wanted.
This fixes PR#44. llvm-svn: 9252
This commit is contained in:
parent
9a758cd924
commit
9107ee3a11
@ -329,7 +329,7 @@ void Printer::printConstantValueOnly(const Constant *CV) {
|
||||
} else if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) {
|
||||
if (isStringCompatible(CVA)) {
|
||||
// print the string alone and return
|
||||
O << "\t.string\t" << getAsCString(CVA) << "\n";
|
||||
O << "\t.ascii\t" << getAsCString(CVA) << "\n";
|
||||
} else { // Not a string. Print the values in successive locations
|
||||
const std::vector<Use> &constValues = CVA->getValues();
|
||||
for (unsigned i=0; i < constValues.size(); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user