diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index b6f343fe4f3..beff5e40610 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -284,6 +284,7 @@ public: /// void addGlobal(GlobalValue *GV); void mergeGlobals(const std::vector &RHS); + void clearGlobals() { std::vector().swap(Globals); } const std::vector &getGlobals() const { return Globals; } typedef std::vector::const_iterator global_iterator;