summaryrefslogtreecommitdiff
path: root/llgo
diff options
context:
space:
mode:
authorAndrew Wilkins <axwalk@gmail.com>2015-07-15 13:05:35 +0000
committerAndrew Wilkins <axwalk@gmail.com>2015-07-15 13:05:35 +0000
commit27ab61338412ff9f9ef63cd1fcbf219dd7fc720c (patch)
tree9b42406d1b69b7048bb741ad41a47c9e4827da86 /llgo
parent04197ceed6a976dcd085c411af9945f586287df1 (diff)
[llgo] set function personality with SetPersonality
Summary: If a function requires a landing pad, set the personality function. Requires D11116. Reviewers: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11117
Diffstat (limited to 'llgo')
-rw-r--r--llgo/irgen/ssa.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/llgo/irgen/ssa.go b/llgo/irgen/ssa.go
index f7a323011cc..04570a82db3 100644
--- a/llgo/irgen/ssa.go
+++ b/llgo/irgen/ssa.go
@@ -598,7 +598,8 @@ func (fr *frame) fixupPhis() {
}
func (fr *frame) createLandingPad(cleanup bool) llvm.Value {
- lp := fr.builder.CreateLandingPad(fr.runtime.gccgoExceptionType, fr.runtime.gccgoPersonality, 0, "")
+ fr.function.SetPersonality(fr.runtime.gccgoPersonality)
+ lp := fr.builder.CreateLandingPad(fr.runtime.gccgoExceptionType, 0, "")
if cleanup {
lp.SetCleanup(true)
} else {