summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-04-22 17:47:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-04-22 17:47:03 +0000
commit1021014c7b665d1b7670a234ad3cb4dce90a7a6a (patch)
tree3afb2da5a39b950122dfab3fa42dc10868853624
parent29c96f133e9e10a8a2f1a8da4441a53f6d461b7c (diff)
Fix DataLayout::operator==().
Patch by Maks Naumov! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206911 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/IR/DataLayout.cpp2
-rw-r--r--test/Linker/Inputs/datalayout-b.ll2
2 files changed, 2 insertions, 2 deletions
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"