From: Ilya Biryukov Date: Mon, 26 Feb 2018 12:06:05 +0000 (+0000) Subject: Explicitly initialize ForceEnableInt128 to avoid UB X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c83f959600bdf1aa23383f6128117d1232aa6e11;p=clang Explicitly initialize ForceEnableInt128 to avoid UB This fixes an uninitialized value read found by msan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326083 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/TargetOptions.h b/include/clang/Basic/TargetOptions.h index fbcba0dcbe..bd57393a27 100644 --- a/include/clang/Basic/TargetOptions.h +++ b/include/clang/Basic/TargetOptions.h @@ -62,7 +62,7 @@ public: std::vector OpenCLExtensionsAsWritten; /// \brief If given, enables support for __int128_t and __uint128_t types. - bool ForceEnableInt128; + bool ForceEnableInt128 = false; }; } // end namespace clang