浏览代码

StackColoring: Move set instead of copying. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230864 91177308-0d34-0410-b5e6-96231b3b80d8
Benjamin Kramer 10 年之前
父节点
当前提交
cdef9818bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/CodeGen/StackColoring.cpp

+ 1 - 1
lib/CodeGen/StackColoring.cpp

@@ -364,7 +364,7 @@ void StackColoring::calculateLocalLiveness() {
       }
       }
     }
     }
 
 
-    BBSet = NextBBSet;
+    BBSet = std::move(NextBBSet);
   }// while changed.
   }// while changed.
 }
 }