]> granicus.if.org Git - clang/commitdiff
CodeGen: Fix long double on Windows using MSVC runtime.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 18 Oct 2010 07:11:10 +0000 (07:11 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 18 Oct 2010 07:11:10 +0000 (07:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116700 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index bc1a19354f2cfd1d6ca3b2e61481a530fdf35ff6..31a55b6c9487cb639eef40caf89a51a0e4ceacc5 100644 (file)
@@ -1355,6 +1355,8 @@ class VisualStudioWindowsX86_32TargetInfo : public WindowsX86_32TargetInfo {
 public:
   VisualStudioWindowsX86_32TargetInfo(const std::string& triple)
     : WindowsX86_32TargetInfo(triple) {
+    LongDoubleWidth = 64;
+    LongDoubleFormat = &llvm::APFloat::IEEEdouble;
   }
   virtual void getTargetDefines(const LangOptions &Opts,
                                 MacroBuilder &Builder) const {