[vmkit-commits] [vmkit] r85561 - /vmkit/trunk/include/mvm/VirtualMachine.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Thu Oct 29 18:44:07 PDT 2009
Author: geoffray
Date: Thu Oct 29 20:44:06 2009
New Revision: 85561
URL: http://llvm.org/viewvc/llvm-project?rev=85561&view=rev
Log:
If {begin, end} are not consistent return NULL.
Modified:
vmkit/trunk/include/mvm/VirtualMachine.h
Modified: vmkit/trunk/include/mvm/VirtualMachine.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/mvm/VirtualMachine.h?rev=85561&r1=85560&r2=85561&view=diff
==============================================================================
--- vmkit/trunk/include/mvm/VirtualMachine.h (original)
+++ vmkit/trunk/include/mvm/VirtualMachine.h Thu Oct 29 20:44:06 2009
@@ -479,7 +479,7 @@
const char* res = 0;
if (I != InternalFunctions.end() && I != InternalFunctions.begin()) {
res = I->second;
- assert ((--I)->second == res && "Malformed map");
+ if ((--I)->second != res) res = 0;
}
InternalFunctionMapLock.release();
return res;
More information about the vmkit-commits
mailing list