[macruby-changes] [4576] MacRuby/trunk/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 4 16:58:32 PDT 2010
Revision: 4576
http://trac.macosforge.org/projects/ruby/changeset/4576
Author: lsansonetti at apple.com
Date: 2010-10-04 16:58:28 -0700 (Mon, 04 Oct 2010)
Log Message:
-----------
save_vars: when converting invoke insns to call, make sure to also transfer the debugging metadata, if any
Modified Paths:
--------------
MacRuby/trunk/compiler.cpp
Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp 2010-10-04 23:13:44 UTC (rev 4575)
+++ MacRuby/trunk/compiler.cpp 2010-10-04 23:58:28 UTC (rev 4576)
@@ -2928,6 +2928,12 @@
"",
invoke);
+ // Transfer the debugging metadata if any.
+ MDNode *node = invoke->getMetadata(dbg_mdkind);
+ if (node !=NULL) {
+ call_inst->setMetadata(dbg_mdkind, node);
+ }
+
invoke->replaceAllUsesWith(call_inst);
BasicBlock *normal_bb = dyn_cast<BasicBlock>(invoke->getNormalDest());
assert(normal_bb != NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101004/db91ac54/attachment.html>
More information about the macruby-changes
mailing list