diff gen/aa.cpp @ 315:a9697749e898 trunk

[svn r336] Made sure calls within a landing pad area are invokes. Nested trys still need some consideration.
author ChristianK
date Thu, 03 Jul 2008 22:05:45 +0200
parents 665b81613475
children 0e6b4d65d3f8
line wrap: on
line diff
--- a/gen/aa.cpp	Wed Jul 02 22:20:18 2008 +0200
+++ b/gen/aa.cpp	Thu Jul 03 22:05:45 2008 +0200
@@ -87,7 +87,7 @@
     pkey = DtoBitCast(pkey, funcTy->getParamType(3));
 
     // call runtime
-    LLValue* ret = gIR->ir->CreateCall4(func, aaval, keyti, valsize, pkey, "aa.index");
+    LLValue* ret = gIR->CreateCallOrInvoke4(func, aaval, keyti, valsize, pkey, "aa.index")->get();
 
     // cast return value
     const LLType* targettype = getPtrToType(DtoType(type));
@@ -125,7 +125,7 @@
     pkey = DtoBitCast(pkey, funcTy->getParamType(2));
 
     // call runtime
-    LLValue* ret = gIR->ir->CreateCall3(func, aaval, keyti, pkey, "aa.in");
+    LLValue* ret = gIR->CreateCallOrInvoke3(func, aaval, keyti, pkey, "aa.in")->get();
 
     // cast return value
     const LLType* targettype = DtoType(type);
@@ -169,5 +169,5 @@
     args.push_back(pkey);
 
     // call runtime
-    gIR->ir->CreateCall(func, args.begin(), args.end(),"");
+    gIR->CreateCallOrInvoke(func, args.begin(), args.end());
 }