Author: ibiryukov Date: Mon Feb 26 04:06:05 2018 New Revision: 326083 URL: http://llvm.org/viewvc/llvm-project?rev=326083&view=rev Log: Explicitly initialize ForceEnableInt128 to avoid UB
This fixes an uninitialized value read found by msan. Modified: cfe/trunk/include/clang/Basic/TargetOptions.h Modified: cfe/trunk/include/clang/Basic/TargetOptions.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TargetOptions.h?rev=326083&r1=326082&r2=326083&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/TargetOptions.h (original) +++ cfe/trunk/include/clang/Basic/TargetOptions.h Mon Feb 26 04:06:05 2018 @@ -62,7 +62,7 @@ public: std::vector<std::string> OpenCLExtensionsAsWritten; /// \brief If given, enables support for __int128_t and __uint128_t types. - bool ForceEnableInt128; + bool ForceEnableInt128 = false; }; } // end namespace clang _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits