[llvm] e69a736 - [llvm-dis] Fix the disable-output flag

Matthew Voss via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 13:36:15 PST 2019


Author: Matthew Voss
Date: 2019-11-14T13:35:21-08:00
New Revision: e69a7364f233c19f493e50276812fd049466b895

URL: https://github.com/llvm/llvm-project/commit/e69a7364f233c19f493e50276812fd049466b895
DIFF: https://github.com/llvm/llvm-project/commit/e69a7364f233c19f493e50276812fd049466b895.diff

LOG: [llvm-dis] Fix the disable-output flag

My change in llvmorg-10-init-9872-g141bb5f308f broke this flag.

Thanks to @rsmith for the bug.

Added: 
    

Modified: 
    llvm/tools/llvm-dis/llvm-dis.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp
index a0d9996da860..5d609468a380 100644
--- a/llvm/tools/llvm-dis/llvm-dis.cpp
+++ b/llvm/tools/llvm-dis/llvm-dis.cpp
@@ -186,7 +186,7 @@ int main(int argc, char **argv) {
     if (DontPrint)
       FinalFilename = "-";
 
-    if (OutputFilename.empty()) { // Unspecified output, infer it.
+    if (FinalFilename.empty()) { // Unspecified output, infer it.
       if (InputFilename == "-") {
         FinalFilename = "-";
       } else {


        


More information about the llvm-commits mailing list