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
/
2011-03-31-ArrayRefFolding.c
blob
42fb8a558e69dd738af7f1c1fc373e661fd162a1
1
// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin %s | FileCheck %s
2
// PR9571
3
4
struct
t
{
5
int
x
;
6
};
7
8
extern
struct
t
*
cfun
;
9
10
int
f
(
void
) {
11
if
(!(
cfun
+
0
))
12
// CHECK: icmp ne ptr
13
return
0
;
14
return
cfun
->
x
;
15
}