[llvm-commits] [vmkit] r51336 - /vmkit/trunk/lib/JnJVM/VMCore/JavaString.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue May 20 13:48:23 PDT 2008
Author: geoffray
Date: Tue May 20 15:48:23 2008
New Revision: 51336
URL: http://llvm.org/viewvc/llvm-project?rev=51336&view=rev
Log:
Call doNew instead of operator(), because we don't want to check initialization.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JavaString.cpp
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaString.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaString.cpp?rev=51336&r1=51335&r2=51336&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaString.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaString.cpp Tue May 20 15:48:23 2008
@@ -17,7 +17,7 @@
JavaString* JavaString::stringDup(const UTF8*& utf8, Jnjvm* vm) {
- JavaString* res = (JavaString*)(*Classpath::newString)(vm);
+ JavaString* res = (JavaString*)Classpath::newString->doNew(vm);
// no need to call the function
// Classpath::initString->run(res, utf8, 0, utf8->size, true);
res->value = utf8;
More information about the llvm-commits
mailing list