r211761 - Make test from r211758 portable

Alp Toker alp at nuanti.com
Wed Jun 25 19:07:07 PDT 2014


Author: alp
Date: Wed Jun 25 21:07:06 2014
New Revision: 211761

URL: http://llvm.org/viewvc/llvm-project?rev=211761&view=rev
Log:
Make test from r211758 portable

It turns out the -fblocks option is determined by the default tooling target
and not implied by the other two flags.

Modified:
    cfe/trunk/unittests/Tooling/TestVisitor.h

Modified: cfe/trunk/unittests/Tooling/TestVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/TestVisitor.h?rev=211761&r1=211760&r2=211761&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/TestVisitor.h (original)
+++ cfe/trunk/unittests/Tooling/TestVisitor.h Wed Jun 25 21:07:06 2014
@@ -59,6 +59,7 @@ public:
       case Lang_OBJCXX11:
         Args.push_back("-ObjC++");
         Args.push_back("-std=c++11");
+        Args.push_back("-fblocks");
         break;
     }
     return tooling::runToolOnCodeWithArgs(CreateTestAction(), Code, Args);





More information about the cfe-commits mailing list