summaryrefslogtreecommitdiffhomepage
path: root/ir/adt
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-07-12 19:02:24 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-07-12 19:08:44 +0200
commit73010130deadde07c4408bd9967c9698d4343f1b (patch)
tree5001e8670e57da60eebc9f57a4c30425f0cb980f /ir/adt
parente006bf20beb3e18e9b652b610bafd9ba30ab9149 (diff)
Fix invalid read in macro definition
Diffstat (limited to 'ir/adt')
-rw-r--r--ir/adt/pdeq.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ir/adt/pdeq.h b/ir/adt/pdeq.h
index 4e051dc..9b3a5fc 100644
--- a/ir/adt/pdeq.h
+++ b/ir/adt/pdeq.h
@@ -84,11 +84,11 @@ static inline void deq_pointer_iter_next(deq_pointer_iter_t *const iter)
#define deq_foreach_pointer(deq, type, pointer) \
for (bool pointer##__once = true; pointer##__once;) \
- for (deq_pointer_iter_t pointer##__iter; pointer##__once;) \
- for (type *pointer; pointer##__once; pointer##__once = false) \
- for (deq_pointer_iter_init(&pointer##__iter, deq); \
- (pointer = *((type**)pointer##__iter.block_p)), \
- !deq_pointer_iter_at_end(&pointer##__iter); \
- deq_pointer_iter_next(&pointer##__iter))
+ for (deq_pointer_iter_t pointer##__iter; pointer##__once; pointer##__once = false) \
+ for (deq_pointer_iter_init(&pointer##__iter, deq); \
+ !deq_pointer_iter_at_end(&pointer##__iter); \
+ deq_pointer_iter_next(&pointer##__iter)) \
+ for (bool pointer##__once2 = true; pointer##__once2;) \
+ for (type *pointer = *((type**)pointer##__iter.block_p); pointer##__once2; pointer##__once2 = false)
#endif