[PATCH] D11117: [llgo] set function personality with SetPersonality

Andrew Wilkins axwalk at gmail.com
Fri Jul 10 20:42:08 PDT 2015


axw created this revision.
axw added a reviewer: pcc.
axw added a subscriber: llvm-commits.

If a function requires a landing pad, set the personality function.

Requires D11116.

http://reviews.llvm.org/D11117

Files:
  irgen/ssa.go

Index: irgen/ssa.go
===================================================================
--- irgen/ssa.go
+++ irgen/ssa.go
@@ -598,7 +598,8 @@
 }
 
 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 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11117.29508.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150711/6cb0fc73/attachment.bin>


More information about the llvm-commits mailing list