diff --git a/lib/Driver/ToolChains/MSVC.h b/lib/Driver/ToolChains/MSVC.h
index f11256d8f9c6d1ad454131fff01fb129cdf230b7..055830c52e0da203166988fdd739b12df07820cb 100644
--- a/lib/Driver/ToolChains/MSVC.h
+++ b/lib/Driver/ToolChains/MSVC.h
@@ -130,7 +130,7 @@ protected:
   Tool *buildAssembler() const override;
 private:
   std::string VCToolChainPath;
-  bool IsVS2017OrNewer;
+  bool IsVS2017OrNewer = false;
   CudaInstallationDetector CudaInstallation;
 };