mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 03:16:05 +03:00
[svn r370] Fixed landing pads on 64bit was broken (hardcoded 32bit type, should be size_t)
This commit is contained in:
parent
c2697dbce0
commit
f03d8f37c1
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ void IRLandingPad::constructLandingPad(llvm::BasicBlock* inBB)
|
|||
gIR->scope() = IRScope(switchinst->getDefaultDest(), gIR->scopeend());
|
||||
}
|
||||
// catches matched first get the largest switchval, so do size - unique int
|
||||
llvm::ConstantInt* switchval = llvm::ConstantInt::get(LLType::Int32Ty, catchToInt.size() - catchToInt[it->catchType]);
|
||||
llvm::ConstantInt* switchval = llvm::ConstantInt::get(DtoSize_t(), catchToInt.size() - catchToInt[it->catchType]);
|
||||
// and make sure we don't add the same switchval twice, may happen with nested trys
|
||||
if(!switchinst->findCaseValue(switchval))
|
||||
switchinst->addCase(switchval, it->target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue