r326083 - Explicitly initialize ForceEnableInt128 to avoid UB
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 26 04:06:05 PST 2018
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
More information about the cfe-commits
mailing list