Move static function to inline function - this fixes a conceivable

ODR violation and a clang-tidy warning about an unused function
in a number of translation units.
This commit is contained in:
Eric Christopher 2020-01-16 16:12:06 -08:00
parent 1645f5e496
commit 40ac4221c3
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class Type;
}
};
static unsigned short computeExpressionSize(ArrayRef<const SCEV *> Args) {
inline unsigned short computeExpressionSize(ArrayRef<const SCEV *> Args) {
APInt Size(16, 1);
for (auto *Arg : Args)
Size = Size.uadd_sat(APInt(16, Arg->getExpressionSize()));