mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Fix up Exception demo from recent opaque pointer type changes to GEP
llvm-svn: 235478
This commit is contained in:
parent
f0b1315a52
commit
afc56f0507
@ -1294,6 +1294,7 @@ static llvm::Function *createCatchWrappedInvokeFunction(
|
||||
// the exception is foreign.
|
||||
llvm::Value *unwindExceptionClass =
|
||||
builder.CreateLoad(builder.CreateStructGEP(
|
||||
ourUnwindExceptionType,
|
||||
builder.CreatePointerCast(unwindException,
|
||||
ourUnwindExceptionType->getPointerTo()),
|
||||
0));
|
||||
@ -1336,10 +1337,10 @@ static llvm::Function *createCatchWrappedInvokeFunction(
|
||||
//
|
||||
// Note: Index is not relative to pointer but instead to structure
|
||||
// unlike a true getelementptr (GEP) instruction
|
||||
typeInfoThrown = builder.CreateStructGEP(typeInfoThrown, 0);
|
||||
typeInfoThrown = builder.CreateStructGEP(ourExceptionType, typeInfoThrown, 0);
|
||||
|
||||
llvm::Value *typeInfoThrownType =
|
||||
builder.CreateStructGEP(typeInfoThrown, 0);
|
||||
builder.CreateStructGEP(builder.getInt8PtrTy(), typeInfoThrown, 0);
|
||||
|
||||
generateIntegerPrint(context,
|
||||
module,
|
||||
|
Loading…
Reference in New Issue
Block a user