aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-11-18 01:03:56 +0000
committerBill Wendling <isanbard@gmail.com>2009-11-18 01:03:56 +0000
commit5eea34267376e76aceb53b6c3dfead816021258f (patch)
tree642ec53ac5486505dbc7587657803d280d8f488b /lib/CodeGen/BranchFolding.cpp
parent3dbb9e64d6e9d1e8bf16f75ebe4fe59ffdf93dd3 (diff)
The llvm-gcc front-end and the pass manager use two separate TargetData objects.
This is probably not confined to *just* these two things. Anyway, the llvm-gcc front-end may look up the structure layout information for an abstract type. That information will be stored into a table with the FE's TD. Instruction combine can come along and also ask for information on that abstract type, but for a separate TD (the one associated with the pass manager). After the type is refined, the old structure layout information in the pass manager's TD file is out of date. If a new type is allocated in the same space as the old-unrefined type, then the structure type information in the pass manager's TD file will be wrong, but won't know it. Fix this by making the TD's structure type information an abstract type user. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions