mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
While searching for appropriate place for temporaries, do not over-incerement iterator.
llvm-svn: 42406
This commit is contained in:
parent
d5849cedfe
commit
1bf4ded048
26
test/FrontendObjC/2007-09-25-EH.m
Normal file
26
test/FrontendObjC/2007-09-25-EH.m
Normal file
@ -0,0 +1,26 @@
|
||||
// RUN: %llvmgcc -c -w -m64 %s -o /dev/null
|
||||
|
||||
@class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;
|
||||
@interface NSException {}
|
||||
@end
|
||||
@interface DSoNode {
|
||||
DSoDirectory *mDirectory;
|
||||
}
|
||||
@end
|
||||
@implementation DSoNode
|
||||
- (void) _findRecordsOfTypes {
|
||||
DSoBuffer *dbData;
|
||||
void *recInfo;
|
||||
NSMutableArray *results;
|
||||
@try {
|
||||
dsGetRecordEntry([dbData dsDataBuffer], (void**)&recInfo);
|
||||
@try {
|
||||
[results addObject:37];
|
||||
} @finally {
|
||||
dsDeallocRecordEntry([mDirectory dsDirRef], recInfo);
|
||||
}
|
||||
} @catch(NSException * exception) {
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user