Skip to content
Browse files

Constants do not need an instruction for a BitCast

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2661 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 48702d0 commit 2b729122a72710d776448a49d407c72bee0a6768 @vincentisambart vincentisambart committed Sep 28, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 compiler.cpp
View
3 compiler.cpp
@@ -1814,8 +1814,7 @@ RoxorCompiler::compile_landing_pad_header(const std::type_info &eh_type)
module->getOrInsertFunction("__gxx_personality_v0",
PtrTy, NULL));
}
- params.push_back(new BitCastInst(__gxx_personality_v0_func,
- PtrTy, "", bb));
+ params.push_back(ConstantExpr::getBitCast(__gxx_personality_v0_func, PtrTy));
if (eh_type == typeid(void)) {
// catch (...)

0 comments on commit 2b72912

Please sign in to comment.
Something went wrong with that request. Please try again.