[llvm] r206911 - Fix DataLayout::operator==().
Rafael Espindola
rafael.espindola at gmail.com
Tue Apr 22 10:47:03 PDT 2014
Author: rafael
Date: Tue Apr 22 12:47:03 2014
New Revision: 206911
URL: http://llvm.org/viewvc/llvm-project?rev=206911&view=rev
Log:
Fix DataLayout::operator==().
Patch by Maks Naumov!
Modified:
llvm/trunk/lib/IR/DataLayout.cpp
llvm/trunk/test/Linker/Inputs/datalayout-b.ll
Modified: llvm/trunk/lib/IR/DataLayout.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DataLayout.cpp?rev=206911&r1=206910&r2=206911&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DataLayout.cpp (original)
+++ llvm/trunk/lib/IR/DataLayout.cpp Tue Apr 22 12:47:03 2014
@@ -357,7 +357,7 @@ bool DataLayout::operator==(const DataLa
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;
}
Modified: llvm/trunk/test/Linker/Inputs/datalayout-b.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/datalayout-b.ll?rev=206911&r1=206910&r2=206911&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/datalayout-b.ll (original)
+++ llvm/trunk/test/Linker/Inputs/datalayout-b.ll Tue Apr 22 12:47:03 2014
@@ -1 +1 @@
-target datalayout = "E"
+target datalayout = "e-p:16:16"
More information about the llvm-commits
mailing list