]> granicus.if.org Git - clang/commit
Fix undefined behavior that is caused by not always initializing a bool.
authorDaniel Jasper <djasper@google.com>
Thu, 17 Aug 2017 06:33:46 +0000 (06:33 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 17 Aug 2017 06:33:46 +0000 (06:33 +0000)
commit5f96802aec23e60d2fc34bb977d97012cd15c4fe
treea3d0d5266250138e0534b0a2bf6075da8182b257
parent4f7bf02f11168223d1de40b536ea61802144dcb0
Fix undefined behavior that is caused by not always initializing a bool.

The fix in r310994 is incomplete, as moveFromAndCancel can set the
pointer without initializing OldIsSpeculativelyEvaluating.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311070 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp