From 7629b71dd4cee9d1a3a69b092b318674532b22ba Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 14 Apr 2008 17:38:21 +0000 Subject: Revert r49614. As Dan pointed out, some of these aren't correct. llvm-svn: 49657 --- llvm/tools/bugpoint/Miscompilation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/bugpoint/Miscompilation.cpp') diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 47d90e51ef3..536c3dbd744 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -657,7 +657,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, for (Function::arg_iterator I = newMain->arg_begin(), E = newMain->arg_end(), OI = oldMain->arg_begin(); I != E; ++I, ++OI) { - I->takeName(OI); // Copy argument names from oldMain + I->setName(OI->getName()); // Copy argument names from oldMain args.push_back(I); } -- cgit v1.2.3