Fix Polly
[polly-mirror.git] / test / ScopInfo / opaque-struct.ll
blob2d6a66f578515106cc5c80ae2b0b005f84513b86
1 ; RUN: opt %loadPolly -polly-scops -disable-output < %s 
3 ; Check that we do not crash with unsized (opaque) types.
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7 %struct.s3 = type opaque
8 %struct.stmt = type opaque
10 ; Function Attrs: nounwind uwtable
11 define void @columnMem(%struct.stmt* %pStmt) #0 {
12 entry:
13   br label %if.else
15 if.else:                                          ; preds = %entry
16   %db = bitcast %struct.stmt* %pStmt to %struct.s3**
17   %0 = load %struct.s3*, %struct.s3** %db, align 8
18   br i1 false, label %if.end9, label %if.then7
20 if.then7:                                         ; preds = %if.else
21   br label %if.end9
23 if.end9:                                          ; preds = %if.then7, %if.else
24   ret void