If the lhs is evaluated before the rhs, FuncletI's operator-> can trigger the
assert(isHandleInSync() && "invalid iterator access!");
at include/llvm/ADT/DenseMap.h:1061. (Happens e.g. when compiled with GCC 6.)
Differential D18440
Don't use potentially invalidated iterator sberg on Mar 24 2016, 4:50 AM. Authored by
Details If the lhs is evaluated before the rhs, FuncletI's operator-> can trigger the assert(isHandleInSync() && "invalid iterator access!"); at include/llvm/ADT/DenseMap.h:1061. (Happens e.g. when compiled with GCC 6.)
Diff Detail
Event TimelineComment Actions
Comment Actions LGTM, thanks! (drop the const from const auto - we don't usually constify value types Also - what type is 'n'? Something simple/cheap? Or should it be referenced Comment Actions Dropped the const. The type of n is int, so taking by value is fine. (But guess it's better to stick to auto, in case the value type of FuncletMembership should ever change.) |