forked from OSchip/llvm-project
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:
parent
1645f5e496
commit
40ac4221c3
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue