]> granicus.if.org Git - clang/commitdiff
Fix typo in r184308.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Jun 2013 01:33:59 +0000 (01:33 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Jun 2013 01:33:59 +0000 (01:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184391 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/gcc_forward.c

index f88c20684083e0a80fd3cbc3e42c02b90f03c8b7..87071742ba8d800df2cc9248e93daf8f42f382d7 100644 (file)
@@ -227,7 +227,7 @@ static void addProfileRT(const ToolChain &TC, const ArgList &Args,
 static bool forwardToGCC(const Option &O) {
   // Don't forward inputs from the original command line.  They are added from
   // InputInfoList.
-  return !O.getKind() == Option::InputClass &&
+  return O.getKind() != Option::InputClass &&
          !O.hasFlag(options::NoForward) &&
          !O.hasFlag(options::DriverOption) &&
          !O.hasFlag(options::LinkerInput);
index 8eead214feef86f26dabf8c6a6e6c071f8d499bb..a3502b200fc0374b53c07fbe46fb46dee3bd6793 100644 (file)
@@ -3,6 +3,7 @@
 // RUN: %clang -target powerpc-unknown-unknown \
 // RUN:   -c %s \
 // RUN:   -Xclang foo-bar \
+// RUN:   -march=x86_64 \
 // RUN:   -mlinker-version=10 -### 2> %t
 // RUN: FileCheck < %t %s
 //
@@ -10,4 +11,8 @@
 // CHECK-NOT: "-mlinker-version=10"
 // CHECK-NOT: "-Xclang"
 // CHECK-NOT: "foo-bar"
+// CHECK: -march
+// CHECK-NOT: "-mlinker-version=10"
+// CHECK-NOT: "-Xclang"
+// CHECK-NOT: "foo-bar"
 // CHECK: gcc_forward