Mark a function as static since it doesn't use anything in the class.
authorCraig Topper <craig.topper@gmail.com>
Wed, 22 Aug 2012 05:36:44 +0000 (05:36 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 22 Aug 2012 05:36:44 +0000 (05:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162342 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86VZeroUpper.cpp

index 80b75dc5f992efd84200e2517f07f20e06bd69ed..b7cac99627549f225f5e8e7fee59a29e0e94650f 100644 (file)
@@ -84,7 +84,7 @@ namespace {
     //  2) All states must be clean for the result to be clean
     //  3) If none above and one unknown, the result state is also unknown
     //
-    unsigned computeState(unsigned PrevState, unsigned CurState) {
+    static unsigned computeState(unsigned PrevState, unsigned CurState) {
       if (PrevState == ST_INIT)
         return CurState;