[all-commits] [llvm/llvm-project] ea1368: The patch is the compiler error specific on the co...

diggerlin via All-commits all-commits at lists.llvm.org
Tue Nov 19 12:20:19 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ea13683f3d848df05d836f6d86dc40ba2113bb43
      https://github.com/llvm/llvm-project/commit/ea13683f3d848df05d836f6d86dc40ba2113bb43
  Author: diggerlin <digger.llvm at gmail.com>
  Date:   2019-11-19 (Tue, 19 Nov 2019)

  Changed paths:
    M llvm/lib/Object/XCOFFObjectFile.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list