Mercurial > projects > ldc
diff ir/irlandingpad.cpp @ 1584:f4c56ed32238
Fixed issue in exception runtime with recent LLVM revisions, with this in place EH seems to work properly on x86-64. These fixes need to be merged into tango trunk still!
author | tomas@localhost.localdomain |
---|---|
date | Wed, 21 Oct 2009 05:46:56 +0200 |
parents | 8d086d552909 |
children | 40bd4a0d4870 |
line wrap: on
line diff
--- a/ir/irlandingpad.cpp Tue Sep 22 20:26:50 2009 +0200 +++ b/ir/irlandingpad.cpp Wed Oct 21 05:46:56 2009 +0200 @@ -133,7 +133,7 @@ } // if there's a finally, the eh table has to have a 0 action if(hasFinally) - selectorargs.push_back(LLConstantInt::get(LLType::getInt32Ty(gIR->context()), 0)); + selectorargs.push_back(DtoConstSize_t(0));//LLConstantInt::get(LLType::getInt32Ty(gIR->context()), 0)); // personality fn llvm::Function* personality_fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_eh_personality");