diff options
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/elaborate.cxx b/elaborate.cxx index 07a2ed61..11d6142b 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -3674,8 +3674,9 @@ semantic_pass_optimize1 (systemtap_session& s) // For listing mode, we need const-folding regardless of optimization so // that @defined expressions can be properly resolved. PR11360 - if (!s.unoptimized || s.listing_mode_vars) - semantic_pass_const_fold (s, relaxed_p); + // We also want it in case variables are used in if/case expressions, + // so enable always. PR11366 + semantic_pass_const_fold (s, relaxed_p); iterations ++; } |