[clang] [clang:ast] Suppress warning for unused var without assertions. (NFC) (PR #169822)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 27 07:46:43 PST 2025
================
@@ -12181,6 +12181,7 @@ static bool evalShiftWithCount(
QualType SourceTy = Call->getArg(0)->getType();
QualType CountTy = Call->getArg(1)->getType();
assert(SourceTy->isVectorType() && CountTy->isVectorType());
----------------
RKSimon wrote:
```suggestion
assert(SourceTy->isVectorType() && Call->getArg(1)->getType()->isVectorType());
```
https://github.com/llvm/llvm-project/pull/169822
More information about the cfe-commits
mailing list