diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index f0be8abb09f..08cac04ac6d 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -128,7 +128,8 @@ protected: // ELF specific protected members. DataRefImpl toDRI(Elf_Sym_Iter Symb) const { DataRefImpl DRI; - DRI.p = reinterpret_cast(Symb.get()) | Symb.isDynamic(); + DRI.p = reinterpret_cast(Symb.get()) | + static_cast(Symb.isDynamic()); return DRI; }