summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Voss <matthew.voss@sony.com>2019-11-14 12:33:52 -0800
committerMatthew Voss <matthew.voss@sony.com>2019-11-14 13:35:21 -0800
commite69a7364f233c19f493e50276812fd049466b895 (patch)
tree07a9b434c140c028e00b76a5b41ae4dfc9d26c6e
parentf7b3ae65c8ac7248afe5be15b83f737a5fe98ae9 (diff)
downloadbcm5719-llvm-e69a7364f233c19f493e50276812fd049466b895.tar.gz
bcm5719-llvm-e69a7364f233c19f493e50276812fd049466b895.zip
[llvm-dis] Fix the disable-output flag
My change in llvmorg-10-init-9872-g141bb5f308f broke this flag. Thanks to @rsmith for the bug.
-rw-r--r--llvm/tools/llvm-dis/llvm-dis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp
index a0d9996da86..5d609468a38 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 {
OpenPOWER on IntegriCloud