]> granicus.if.org Git - clang/commitdiff
clang/unittests/Tooling/RewriterTestContext.h: Don't try to remove TemporaryDirectory.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 27 May 2012 13:10:14 +0000 (13:10 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 27 May 2012 13:10:14 +0000 (13:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157530 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Tooling/RewriterTestContext.h

index eecb1d0cb8953c825bf91f3084e4ae94ad58efc6..edcf77c22f053c0ee73ae5970fc80ad6ab29a8a3 100644 (file)
@@ -43,11 +43,6 @@ class RewriterTestContext {
   }
 
   ~RewriterTestContext() {
-    if (TemporaryDirectory.isValid()) {
-      std::string ErrorInfo;
-      TemporaryDirectory.eraseFromDisk(true, &ErrorInfo);
-      assert(ErrorInfo.empty());
-    }
   }
 
   FileID createInMemoryFile(StringRef Name, StringRef Content) {