Remove bitcast of personality function to void* in codegen (#3545)
This commit is contained in:
committed by
GitHub
parent
5fe93fb032
commit
0ce8fe5326
+1
-1
@@ -550,7 +550,7 @@ internal class FunctionGenerationContext(val function: LLVMValueRef,
|
|||||||
LLVMBuildExtractValue(builder, aggregate, index, name)!!
|
LLVMBuildExtractValue(builder, aggregate, index, name)!!
|
||||||
|
|
||||||
fun gxxLandingpad(numClauses: Int, name: String = ""): LLVMValueRef {
|
fun gxxLandingpad(numClauses: Int, name: String = ""): LLVMValueRef {
|
||||||
val personalityFunction = LLVMConstBitCast(context.llvm.gxxPersonalityFunction, int8TypePtr)
|
val personalityFunction = context.llvm.gxxPersonalityFunction
|
||||||
|
|
||||||
// Type of `landingpad` instruction result (depends on personality function):
|
// Type of `landingpad` instruction result (depends on personality function):
|
||||||
val landingpadType = structType(int8TypePtr, int32Type)
|
val landingpadType = structType(int8TypePtr, int32Type)
|
||||||
|
|||||||
Reference in New Issue
Block a user