diff --git a/src/las.h b/src/las.h
index 63e09cddadb15b491e19e952c9170074188ee9e9..3166091c3952127a4ced6f0f3ea40cfdb25ca279 100644
--- a/src/las.h
+++ b/src/las.h
@@ -106,6 +106,10 @@ union node_data
   } integer;
 };
 
+#ifdef PIKE_DEBUG
+#include "opcodes.h"
+#endif
+
 struct node_s
 {
   unsigned INT32 refs;
@@ -118,7 +122,11 @@ struct node_s
   unsigned INT16 tree_info;
   unsigned INT16 pad;
   /* The stuff from this point on is hashed. */
+#ifdef PIKE_DEBUG
+  enum Pike_opcodes token : 16;
+#else
   unsigned INT16 token;
+#endif
   union node_data u;
 };