diff options
author | Andrew Wilkins <axwalk@gmail.com> | 2015-07-15 13:05:35 +0000 |
---|---|---|
committer | Andrew Wilkins <axwalk@gmail.com> | 2015-07-15 13:05:35 +0000 |
commit | fec95af706eb1bcd98c91b1b5738ba87e6b3f49c (patch) | |
tree | cd786a367aa9aeb61bcd0ff9690be746ef09cbc5 | |
parent | 02ee3efb0cdf689bea9fe63354dc236545eabd16 (diff) | |
download | bcm5719-llvm-fec95af706eb1bcd98c91b1b5738ba87e6b3f49c.tar.gz bcm5719-llvm-fec95af706eb1bcd98c91b1b5738ba87e6b3f49c.zip |
[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
llvm-svn: 242290
-rw-r--r-- | llgo/irgen/ssa.go | 3 |
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 { |