Mercurial > projects > ldc
diff gen/aa.cpp @ 1013:8c73ff5f69e0
Use llvm::CallSite instead of custom CallOrInvoke class.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 28 Feb 2009 22:16:52 +0100 |
parents | 03d7c4aac654 |
children | af625ea2d3cf |
line wrap: on
line diff
--- a/gen/aa.cpp Sat Feb 28 19:58:30 2009 +0100 +++ b/gen/aa.cpp Sat Feb 28 22:16:52 2009 +0100 @@ -84,7 +84,7 @@ pkey = DtoBitCast(pkey, funcTy->getParamType(3)); // call runtime - LLValue* ret = gIR->CreateCallOrInvoke4(func, aaval, keyti, valsize, pkey, "aa.index")->get(); + LLValue* ret = gIR->CreateCallOrInvoke4(func, aaval, keyti, valsize, pkey, "aa.index").getInstruction(); // cast return value const LLType* targettype = getPtrToType(DtoType(type)); @@ -126,7 +126,7 @@ pkey = DtoBitCast(pkey, funcTy->getParamType(2)); // call runtime - LLValue* ret = gIR->CreateCallOrInvoke3(func, aaval, keyti, pkey, "aa.in")->get(); + LLValue* ret = gIR->CreateCallOrInvoke3(func, aaval, keyti, pkey, "aa.in").getInstruction(); // cast return value const LLType* targettype = DtoType(type);