OSDN Git Service

Compare DataLayout by Value, not by pointer.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Feb 2014 17:02:08 +0000 (17:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Feb 2014 17:02:08 +0000 (17:02 +0000)
commitc4bdb93d6a4d8eb40584554e0cc4fc3e3732f707
tree25c6a5fb60aefed9e2f8e77e751c3e4b915a8e9b
parente3561972d45633cee705084ce1e26c4ecbbe8d43
Compare DataLayout by Value, not by pointer.

This fixes spurious warnings in llvm-link about the datalayout not matching.

Thanks to Zalman Stern for reporting the bug!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202276 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DataLayout.h
lib/IR/DataLayout.cpp
lib/Linker/LinkModules.cpp
test/Linker/Inputs/datalayout-a.ll [new file with mode: 0644]
test/Linker/Inputs/datalayout-b.ll [new file with mode: 0644]
test/Linker/datalayout.ll [new file with mode: 0644]