summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
commit6a89228faca4b30c4abc29b5dec98bdac011ea4c (patch)
treea367894cbd50a8b77a1880ea47757e214826bb52 /tools/bugpoint
parentf98743a49d931e4f4d7ee17e5869972fc96ff115 (diff)
downloadllvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.gz
llvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.bz2
llvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.xz
eliminate the "string" form of ConstantArray::get, using
ConstantDataArray::getString instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/Miscompilation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 7ff16dbf95..82a3a862a2 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -820,7 +820,8 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
// Don't forward functions which are external in the test module too.
if (TestFn && !TestFn->isDeclaration()) {
// 1. Add a string constant with its name to the global file
- Constant *InitArray = ConstantArray::get(F->getContext(), F->getName());
+ Constant *InitArray =
+ ConstantDataArray::getString(F->getContext(), F->getName());
GlobalVariable *funcName =
new GlobalVariable(*Safe, InitArray->getType(), true /*isConstant*/,
GlobalValue::InternalLinkage, InitArray,