The patch is the compiler error specific on the compile error on CMVC
authordiggerlin <digger.llvm@gmail.com>
Tue, 19 Nov 2019 20:17:32 +0000 (15:17 -0500)
committerdiggerlin <digger.llvm@gmail.com>
Tue, 19 Nov 2019 20:17:56 +0000 (15:17 -0500)
commitea13683f3d848df05d836f6d86dc40ba2113bb43
tree6ab9a41a4a6aee053d69bdf8f6a5ab3875cad4ef
parentc444a01df3553d9405cbd4dac3c1074a71e6c2e1
The patch is the compiler error specific on the compile error on CMVC

SUMMARY:

CMVC has a compiler error on the
const uint64_t OffsetToRaw = is64Bit()
                                   ? toSection64(Sec)->FileOffsetToRawData
                                   : toSection32(Sec)->FileOffsetToRawData;

while  gcc  compiler do not have the problem.
I have to change the code to

  uint64_t OffsetToRaw;
  if (is64Bit())
    OffsetToRaw = toSection64(Sec)->FileOffsetToRawData;
  else
    OffsetToRaw = toSection32(Sec)->FileOffsetToRawData;

Reviewers: Sean Fertile
Subscribers: rupprecht, seiyai,hiraditya

Differential Revision: https://reviews.llvm.org/D70255
llvm/lib/Object/XCOFFObjectFile.cpp