search for: ea19f6c4

Displaying 2 results from an estimated 2 matches for "ea19f6c4".

Did you mean: ea19a6cc
2010 Jul 28
0
[LLVMdev] Strange behavior when converting arrays to strings
...: return Result; 8: } I think that the loop terminating condition in line 5 should be changed from != to <. Does this look right? Thanks, Javier -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100727/ea19f6c4/attachment.html>
2010 Jul 16
2
[LLVMdev] Strange behavior when converting arrays to strings
Hello, I found saw some strange behavior (to me) when converting constant arrays to strings. Consider the following example: std::string Text = "HelloWorld"; unsigned TextLengthBefore = Text.length(); ConstantArray *pArray = dyn_cast<ConstantArray>(llvm::ConstantArray::get(pModule->getContext(), Text, true)); unsigned NumElements = pArray->getNumOperands(); Text =