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
[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2012-01-11-OpaqueBitcastCrash.ll
blob
abab9dc57029faaadcf0e71728fdb641510c0a7c
1
; RUN: opt < %s -instcombine -disable-output
2
3
%opaque_struct = type opaque
4
5
@G = external global [0 x %opaque_struct]
6
7
declare void @foo(%opaque_struct*)
8
9
define void @bar() {
10
call void @foo(%opaque_struct* bitcast ([0 x %opaque_struct]* @G to %opaque_struct*))
11
ret void
12
}