1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[Hexagon] Fix unused variable warning in release builds

llvm-svn: 346537
This commit is contained in:
Jordan Rupprecht 2018-11-09 18:54:27 +00:00
parent 1d0a9d40b9
commit 780ec70d82

View File

@ -555,6 +555,7 @@ void HexagonFrameLowering::emitPrologue(MachineFunction &MF,
bool HexagonFrameLowering::enableCalleeSaveSkip(
const MachineFunction &MF) const {
const auto &F = MF.getFunction();
(void)F; // Silence unused variable in release builds
assert(F.hasFnAttribute(Attribute::NoReturn) &&
F.getFunction().hasFnAttribute(Attribute::NoUnwind) &&
!F.getFunction().hasFnAttribute(Attribute::UWTable));