projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PR5023: The instruction form of DominatorTree::dominates did not
[oota-llvm.git]
/
test
/
Transforms
/
Mem2Reg
/
crash.ll
1
; RUN: opt < %s -mem2reg -S
2
; PR5023
3
4
declare i32 @bar()
5
6
define i32 @foo() {
7
entry:
8
%whichFlag = alloca i32
9
%A = invoke i32 @bar()
10
to label %invcont2 unwind label %lpad86
11
12
invcont2:
13
store i32 %A, i32* %whichFlag
14
br label %bb15
15
16
bb15:
17
%B = load i32* %whichFlag
18
ret i32 %B
19
20
lpad86:
21
br label %bb15
22
23
}
24