diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-20 16:33:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-20 16:33:00 +0000 |
commit | d6a58286f5811d76e7a23ad1b349368bf15b3396 (patch) | |
tree | f9499bc90cbcf8e78eceeab6ef66b9359dee9142 /clang/unittests/Frontend/FrontendActionTest.cpp | |
parent | 32fbe31246fa498c4170411dfda3ae85b7c39c4e (diff) | |
download | bcm5719-llvm-d6a58286f5811d76e7a23ad1b349368bf15b3396.tar.gz bcm5719-llvm-d6a58286f5811d76e7a23ad1b349368bf15b3396.zip |
Fix broken unit test
llvm-svn: 148547
Diffstat (limited to 'clang/unittests/Frontend/FrontendActionTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/FrontendActionTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Frontend/FrontendActionTest.cpp b/clang/unittests/Frontend/FrontendActionTest.cpp index a32388a062e..2d4befc1f4d 100644 --- a/clang/unittests/Frontend/FrontendActionTest.cpp +++ b/clang/unittests/Frontend/FrontendActionTest.cpp @@ -55,8 +55,8 @@ TEST(ASTFrontendAction, Sanity) { CompilerInvocation *invocation = new CompilerInvocation; invocation->getPreprocessorOpts().addRemappedFile( "test.cc", MemoryBuffer::getMemBuffer("int main() { float x; }")); - invocation->getFrontendOpts().Inputs.push_back( - std::make_pair(IK_CXX, "test.cc")); + invocation->getFrontendOpts().Inputs.push_back(FrontendInputFile("test.cc", + IK_CXX)); invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; CompilerInstance compiler; |