Skip to content

Commit 74b1c10

Browse files
Prabhukpetrhosek
andauthored
Update clang/lib/Basic/Targets/X86.h
Co-authored-by: Petr Hosek <[email protected]>
1 parent 4da832b commit 74b1c10

File tree

1 file changed

+4
-2
lines changed
  • clang/lib/Basic/Targets

1 file changed

+4
-2
lines changed

clang/lib/Basic/Targets/X86.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,15 +843,17 @@ class LLVM_LIBRARY_VISIBILITY UEFIX86_64TargetInfo
843843

844844
// Set C++ ABI.
845845
this->TheCXXABI.set(TargetCXXABI::Microsoft);
846-
// Set Integer types and alignment.
846+
LongWidth = LongAlign = 32;
847+
DoubleAlign = LongLongAlign = 64;
848+
LongDoubleWidth = LongDoubleAlign = 64;
849+
LongDoubleFormat = &llvm::APFloat::IEEEdouble();
847850
IntMaxType = SignedLongLong;
848851
Int64Type = SignedLongLong;
849852
SizeType = UnsignedLongLong;
850853
PtrDiffType = SignedLongLong;
851854
IntPtrType = SignedLongLong;
852855
WCharType = UnsignedShort;
853856
WIntType = UnsignedShort;
854-
LongWidth = LongAlign = 32;
855857

856858
this->resetDataLayout("e-m:w-p270:32:32-p271:32:32-p272:64:64-"
857859
"i64:64-i128:128-f80:128-n8:16:32:64-S128");

0 commit comments

Comments
 (0)