diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
commit | f1179025ae43be2b23d6c936f10063aab622ea2a (patch) | |
tree | 7a211bf9572c18d5275b058538cc6535ed42f848 /llvm/lib/Transforms | |
parent | c0b52babc7e2f898f551fb031a316a7a662e3472 (diff) | |
download | bcm5719-llvm-f1179025ae43be2b23d6c936f10063aab622ea2a.tar.gz bcm5719-llvm-f1179025ae43be2b23d6c936f10063aab622ea2a.zip |
eliminate the "string" form of ConstantArray::get, using
ConstantDataArray::getString instead.
llvm-svn: 149365
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index c6386009ef4..b8ead89a8fa 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -213,7 +213,7 @@ const char *AddressSanitizer::getPassName() const { // Create a constant for Str so that we can pass it to the run-time lib. static GlobalVariable *createPrivateGlobalForString(Module &M, StringRef Str) { - Constant *StrConst = ConstantArray::get(M.getContext(), Str); + Constant *StrConst = ConstantDataArray::getString(M.getContext(), Str); return new GlobalVariable(M, StrConst->getType(), true, GlobalValue::PrivateLinkage, StrConst, ""); } |