r184391 - Fix typo in r184308.
Richard Smith
richard-llvm at metafoo.co.uk
Wed Jun 19 18:33:59 PDT 2013
Author: rsmith
Date: Wed Jun 19 20:33:59 2013
New Revision: 184391
URL: http://llvm.org/viewvc/llvm-project?rev=184391&view=rev
Log:
Fix typo in r184308.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/gcc_forward.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=184391&r1=184390&r2=184391&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Jun 19 20:33:59 2013
@@ -227,7 +227,7 @@ static void addProfileRT(const ToolChain
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);
Modified: cfe/trunk/test/Driver/gcc_forward.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/gcc_forward.c?rev=184391&r1=184390&r2=184391&view=diff
==============================================================================
--- cfe/trunk/test/Driver/gcc_forward.c (original)
+++ cfe/trunk/test/Driver/gcc_forward.c Wed Jun 19 20:33:59 2013
@@ -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
More information about the cfe-commits
mailing list