From 26a707493903729aab49e02a082a0e481003b760 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 27 May 2010 19:47:36 +0000 Subject: Avoid calling outs() and fouts() when the stream isn't really needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104873 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-mc/llvm-mc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/llvm-mc/llvm-mc.cpp') diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index a114ab0c3f..6de6bfb3c8 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -323,8 +323,7 @@ static int AssembleInput(const char *ProgName) { Parser.setTargetParser(*TAP.get()); int Res = Parser.Run(NoInitialTextSection); - if (Out != &fouts()) - delete Out; + delete Out; // Delete output on errors. if (Res && OutputFilename != "-") -- cgit v1.2.3