repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
debug-info-line2.c
blob
085fd97bfabbd97f9c6b46274198cbfc85b8924b
1
// RUN: %clang_cc1 -triple x86_64-darwin-apple -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
2
3
int
bar
(
void
);
4
int
foo
(
int
i
) {
5
int
j
=
0
;
6
if
(
i
) {
7
j
=
bar
();
8
}
9
else
10
{
11
// CHECK: add nsw
12
// CHECK-NEXT: store i32 %{{[a-zA-Z0-9]+}}
13
// CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg
14
j
=
bar
() +
2
;
15
}
16
return
j
;
17
}