diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-03-23 17:19:18 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-03-23 17:19:18 +0000 |
commit | 4376cffb5703410561136132a7799ee4535678fc (patch) | |
tree | a8bcec1e59211408b3db33d8ca7f1035cebed7fc /llvm/lib/Support/APInt.cpp | |
parent | 256f149bf0f8ef2c83cbb467074f6f62ecb18826 (diff) | |
download | llvm-4376cffb5703410561136132a7799ee4535678fc.zip llvm-4376cffb5703410561136132a7799ee4535678fc.tar.gz llvm-4376cffb5703410561136132a7799ee4535678fc.tar.bz2 |
Add a minimal fix for PR36878.
When looking for the output section and the output offset the
expectation was that the caller had looked at Repl. That works fine
for InputSections, but in the case of MergeInputSections the caller
doesn't have the section that is actually replaced.
The original testcase was failing because getOutputSection was
returning null. The slightly extended testcase also checks that
getOffset also checks Repl.
I will send a refactoring separetelly.
llvm-svn: 328332
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions