2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-darwin-apple -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
|
2011-03-30 02:35:54 +08:00
|
|
|
// Radar 9199234
|
|
|
|
|
|
|
|
int bar();
|
|
|
|
int foo(int i) {
|
|
|
|
int j = 0;
|
|
|
|
if (i) {
|
|
|
|
j = bar();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-07-18 05:52:07 +08:00
|
|
|
// CHECK: add nsw
|
|
|
|
// CHECK-NEXT: store i32 %{{[a-zA-Z0-9]+}}
|
|
|
|
// CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg
|
2011-03-30 02:35:54 +08:00
|
|
|
j = bar() + 2;
|
|
|
|
}
|
|
|
|
return j;
|
|
|
|
}
|