diff options
Diffstat (limited to 'tools/llvm-mc/llvm-mc.cpp')
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 != "-") |