[PATCH] D68340: Add AIX toolchain and basic linker functionality
Jason Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 8 12:59:36 PDT 2019
jasonliu added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/AIX.cpp:35
+ // Only support 32 and 64 bit
+ if (!IsArch32Bit && !IsArch64Bit)
+ llvm_unreachable("Unsupported bit width value");
----------------
Xiangling_L wrote:
> Is there any reason to use llvm_unreachable here? I think we should use 'assertion' instead here:
>
> ```
> assert((IsArch32Bit || IsArch64Bit) && "...");
> ```
IsArch64Bit used only in the assertion could cause warning when the assertion is turned off.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68340/new/
https://reviews.llvm.org/D68340
More information about the cfe-commits
mailing list