mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix iterator invalidation bug, identified by Coverity.
llvm-svn: 28257
This commit is contained in:
parent
b1ad13a4bc
commit
acd1bbfff7
@ -93,6 +93,7 @@ DynamicLibrary::~DynamicLibrary() {
|
||||
if (*I == a_handle) {
|
||||
// Note: don't use the swap/pop_back trick here. Order is important.
|
||||
OpenedHandles.erase(I);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ Process::GetTimeUsage(TimeValue& elapsed, TimeValue& user_time,
|
||||
TimeValue& sys_time)
|
||||
{
|
||||
elapsed = TimeValue::now();
|
||||
#if defined(HAVE_GETRUSAGE)
|
||||
#if 0 // defined(HAVE_GETRUSAGE)
|
||||
struct rusage usage;
|
||||
::getrusage(RUSAGE_SELF, &usage);
|
||||
user_time = TimeValue(
|
||||
|
Loading…
Reference in New Issue
Block a user