Commit bd9a525e authored by Mikael Holmen's avatar Mikael Holmen
Browse files

[AArch64] Fix gcc "enumeral and non-enumeral type" warning

Without this gcc (9.3.0) warns with
 ../lib/Target/AArch64/GISel/AArch64CallLowering.cpp: In function 'unsigned int getCallOpcode(const llvm::MachineFunction&, bool, bool, std::optional<llvm::CallLowering::PtrAuthInfo>&, llvm::MachineRegisterInfo&)':
 ../lib/Target/AArch64/GISel/AArch64CallLowering.cpp:1025: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
  1025 |       return IsIndirect ? getBLRCallOpcode(CallerF) : AArch64::BL;
       |
parent baad1b85
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment