diff --git a/lib/IR/DataLayout.cpp b/lib/IR/DataLayout.cpp index d85081629cf..7c3bc3df6d1 100644 --- a/lib/IR/DataLayout.cpp +++ b/lib/IR/DataLayout.cpp @@ -357,7 +357,7 @@ bool DataLayout::operator==(const DataLayout &Other) const { StackNaturalAlign == Other.StackNaturalAlign && ManglingMode == Other.ManglingMode && LegalIntWidths == Other.LegalIntWidths && - Alignments == Other.Alignments && Pointers == Pointers; + Alignments == Other.Alignments && Pointers == Other.Pointers; assert(Ret == (getStringRepresentation() == Other.getStringRepresentation())); return Ret; } diff --git a/test/Linker/Inputs/datalayout-b.ll b/test/Linker/Inputs/datalayout-b.ll index 59cdb68a3f7..d76c1aa2e31 100644 --- a/test/Linker/Inputs/datalayout-b.ll +++ b/test/Linker/Inputs/datalayout-b.ll @@ -1 +1 @@ -target datalayout = "E" +target datalayout = "e-p:16:16"