aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2018-09-19 18:51:42 +0000
committerVitaly Buka <vitalybuka@google.com>2018-09-19 18:51:42 +0000
commit84d912b7d241cef80774e12deaf3b9ce183c9839 (patch)
tree5df03fe13fc7d5d4376b5e3d35ce3cd18d87e7d3 /llvm/lib/CodeGen/MachineInstr.cpp
parent7e880a4f6de50b3f72156cb72c0749862b2d9ceb (diff)
downloadllvm-84d912b7d241cef80774e12deaf3b9ce183c9839.zip
llvm-84d912b7d241cef80774e12deaf3b9ce183c9839.tar.gz
llvm-84d912b7d241cef80774e12deaf3b9ce183c9839.tar.bz2
[ThinLTO] Write TYPE_IDs for types used in functions imported by aliases
Summary: ThinLTO imports alias as a copy of a aliasee, so when we import such functions with type tests we will need type ids used by function. However after D49565 we pick types only during processing of FunctionSummary which is not happening for such aliesees. Example: Unit U1 with a type, a functions F with the type check, and an alias A to the function. Unit U2 with only call to the alias A. In particular, this happens when we use -mconstructor-aliases, which is default. So if c++ unit only creates instance of the class, without calling any other methods it will lack of necessary type ids, which will result in false CFI reports. Reviewers: tejohnson, eugenis Subscribers: pcc, mehdi_amini, inglorion, eraman, hiraditya, steven_wu, dexonsmith, llvm-commits Differential Revision: https://reviews.llvm.org/D52201 llvm-svn: 342574
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions