[PATCH] D125278: [GlobalOpt] Relax the check for ctor priorities
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 15:52:33 PDT 2022
alexander-shaposhnikov added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/CtorUtils.cpp:108
- ConstantInt *CI = cast<ConstantInt>(CS->getOperand(0));
- if (CI->getZExtValue() != 65535)
- return nullptr;
----------------
P.S. https://llvm.org/doxygen/classllvm_1_1ConstantInt.html#ac09a21c371a9c535cbc13e8f82503aec getZExtValue returns uint64_t that's why I initially used uint64_t
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125278/new/
https://reviews.llvm.org/D125278
More information about the llvm-commits
mailing list