]> granicus.if.org Git - clang/commitdiff
Explicitly initialize ForceEnableInt128 to avoid UB
authorIlya Biryukov <ibiryukov@google.com>
Mon, 26 Feb 2018 12:06:05 +0000 (12:06 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 26 Feb 2018 12:06:05 +0000 (12:06 +0000)
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

include/clang/Basic/TargetOptions.h

index fbcba0dcbe4aa4c096822598983fbb19a6029317..bd57393a2787a75975ece90a6cfbe6d8ba35cfc7 100644 (file)
@@ -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