Skip to content

Commit 40ac422

Browse files
committed
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.
1 parent 1645f5e commit 40ac422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Type;
6464
}
6565
};
6666

67-
static unsigned short computeExpressionSize(ArrayRef<const SCEV *> Args) {
67+
inline unsigned short computeExpressionSize(ArrayRef<const SCEV *> Args) {
6868
APInt Size(16, 1);
6969
for (auto *Arg : Args)
7070
Size = Size.uadd_sat(APInt(16, Arg->getExpressionSize()));

0 commit comments

Comments
 (0)