[PATCH] Fix DataLayout::operator==()
Maks Naumov
maksqwe1 at ukr.net
Tue Apr 22 08:26:48 PDT 2014
I added data layout pointers to "test/Linker/Inputs/datalayout-b.ll"
Hi rafael,
http://reviews.llvm.org/D3435
CHANGE SINCE LAST DIFF
http://reviews.llvm.org/D3435?vs=8683&id=8730#toc
Files:
test/Linker/Inputs/datalayout-b.ll
lib/IR/DataLayout.cpp
Index: test/Linker/Inputs/datalayout-b.ll
===================================================================
--- test/Linker/Inputs/datalayout-b.ll
+++ test/Linker/Inputs/datalayout-b.ll
@@ -1 +1 @@
-target datalayout = "E"
+target datalayout = "e-p:16:16"
Index: lib/IR/DataLayout.cpp
===================================================================
--- lib/IR/DataLayout.cpp
+++ lib/IR/DataLayout.cpp
@@ -357,7 +357,7 @@
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3435.2.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140422/45c5a705/attachment.bin>
More information about the llvm-commits
mailing list