[ABI][NFC] Fix the confusion of ByVal and ByRef argument names
authorAnatoly Trosinenko <atrosinenko@accesssoftek.com>
Thu, 6 Aug 2020 11:34:10 +0000 (14:34 +0300)
committerAnatoly Trosinenko <atrosinenko@accesssoftek.com>
Thu, 6 Aug 2020 12:20:18 +0000 (15:20 +0300)
commit5a07490d7611088277dca4c1c06c2002403b7039
tree48ad1ddee14badfc3fe85df989986bff03861ee0
parent3d10050e3748a9f40b8872f0f49a661020949bfe
[ABI][NFC] Fix the confusion of ByVal and ByRef argument names

The second argument of getNaturalAlignIndirect() was `bool ByRef`, but
the implementation was just delegating to getIndirect() with `ByRef`
passed unchanged to `bool ByVal` parameter of getIndirect().

Fix a couple of /*ByRef=*/ comments as well.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D85113
clang/lib/CodeGen/ABIInfo.h
clang/lib/CodeGen/TargetInfo.cpp