llvm.org GIT mirror llvm / 435b4d2
fix rdar://8878965, a regression I introduced with the recent llvm.objectsize changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123771 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
2 changed file(s) with 35 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
643643
644644 // If the iterator instruction was recursively deleted, start over at the
645645 // start of the block.
646 if (IterHandle != CurInstIterator)
646 if (IterHandle != CurInstIterator) {
647647 CurInstIterator = BB->begin();
648 SunkAddrs.clear();
649 }
648650 return true;
649651 }
650652
55 @tags = global [1 x %struct.AVCodecTag*] [%struct.AVCodecTag* getelementptr
66 inbounds ([0 x %struct.AVCodecTag]* @ff_codec_bmp_tags, i32 0, i32 0)]
77
8
9 ; rdar://8878965
10
11 %struct.CAMERA = type { [3 x double], [3 x double], [3 x double], [3 x double], [3 x double], [3 x double], double, double, i32, double, double, i32, double, i32* }
12
13 define void @Parse_Camera(%struct.CAMERA** nocapture %Camera_Ptr) nounwind {
14 entry:
15 %.pre = load %struct.CAMERA** %Camera_Ptr, align 4
16 %0 = getelementptr inbounds %struct.CAMERA* %.pre, i32 0, i32 1, i32 0
17 %1 = getelementptr inbounds %struct.CAMERA* %.pre, i32 0, i32 1, i32 2
18 br label %bb32
19
20 bb32: ; preds = %bb6
21 %2 = load double* %0, align 4
22 %3 = load double* %1, align 4
23 %4 = load double* %0, align 4
24 call void @Parse_Vector(double* %0) nounwind
25 %5 = call i32 @llvm.objectsize.i32(i8* undef, i1 false)
26 %6 = icmp eq i32 %5, -1
27 br i1 %6, label %bb34, label %bb33
28
29 bb33: ; preds = %bb32
30 unreachable
31
32 bb34: ; preds = %bb32
33 unreachable
34
35 }
36
37 declare void @Parse_Vector(double*)
38 declare i32 @llvm.objectsize.i32(i8*, i1)
39