================
@@ -673,8 +673,8 @@ void ConstantHoistingPass::findBaseConstants(GlobalVariable
*BaseGV) {
llvm::stable_sort(ConstCandVec, [](const ConstantCandidate &LHS,
const ConstantCandidate &RHS) {
if (LHS.ConstInt->getType() != RHS.ConstInt->getType())
- return LHS.ConstInt->getType()->getBitWidth() <
- RHS.ConstInt->getType()->getBitWidth();
+ return LHS.ConstInt->getIntegerType()->getBitWidth() <
+ RHS.ConstInt->getIntegerType()->getBitWidth();
----------------
nikic wrote:
```suggestion
return LHS.ConstInt->getBitWidth() <
RHS.ConstInt->getBitWidth();
```
https://github.com/llvm/llvm-project/pull/75217
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits