[PM] Complete the cross-layer interfaces with a Module-to-Function
[oota-llvm.git] / unittests / IR / DominatorTreeTest.cpp
index 3a527adbc009db56b9fc9f248564fa8654c58c43..4e5af9395cc8c5184f994548dac62f1719e16bd6 100644 (file)
@@ -1,3 +1,12 @@
+//===- llvm/unittests/IR/DominatorTreeTest.cpp - Constants unit tests -----===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
 #include "llvm/Analysis/Dominators.h"
 #include "llvm/Assembly/Parser.h"
 #include "llvm/IR/Instructions.h"
@@ -182,7 +191,7 @@ namespace llvm {
 
     TEST(DominatorTree, Unreachable) {
       DPass *P = new DPass();
-      Module *M = makeLLVMModule(P);
+      OwningPtr<Module> M(makeLLVMModule(P));
       PassManager Passes;
       Passes.add(P);
       Passes.run(*M);