Skip to content

Unused variables when building Bolt without asserts #55404

Closed
@tschuett

Description

@tschuett

My Apple Clang is unhappy about a couple unused variables:

bool DataWritten = false;
bool IsTailCall = isTailCall(Inst);
bool Ret = evaluateMemOperandTarget(*Adrp, Base, AdrpPC, InstSize);
BinaryContext &BC = Function.getBinaryContext();
const bool IsCondBranch = MIB->isConditionalBranch(Instruction);
uint8_t Opcode = ExprBytes[0];
bool Valid = true;
bool Found = false;
bool Erased = false;

It is really unhappy about common.h. I have feeling there is a -std=c++14 missing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions