guard created values from being optimized out (bnc#895964)

well, I took as example this fix https://github.com/sparklemotion/sqlite3-ruby/commit/dd9ded98633ece40f9794464e82bb7646028753e#diff-d785f811625fbe40f26a6c330f59431cR345

If it is how you said, then it is really misleading as set guard to protect before dangerous road and not after you finish it.