about summary refs log tree commit diff stats
path: root/043new.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-06 17:29:52 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-06 17:29:52 -0800
commitb2e4056d6674515ed9ba3b56c40ec19c9b7eae3a (patch)
treee150b769e4a3df1b1a5336408cf8c4f3a573df0b /043new.cc
parent57d01f212c8cddb14f585b3ab32984d11a9222e3 (diff)
downloadmu-b2e4056d6674515ed9ba3b56c40ec19c9b7eae3a.tar.gz
2383 - new concern: idempotence of transforms
I'd not paid any attention to it so far, but I need to do so from now
on.
Diffstat (limited to '043new.cc')
-rw-r--r--043new.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/043new.cc b/043new.cc
index 233b49b5..db11ff96 100644
--- a/043new.cc
+++ b/043new.cc
@@ -50,7 +50,7 @@ case NEW: {
 
 //:: translate 'new' to 'allocate' instructions that take a size instead of a type
 :(after "Transform.push_back(check_instruction)")  // check_instruction will guard against direct 'allocate' instructions below
-Transform.push_back(transform_new_to_allocate);
+Transform.push_back(transform_new_to_allocate);  // idempotent
 
 :(code)
 void transform_new_to_allocate(const recipe_ordinal r) {