diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-11 18:21:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-11 18:21:59 +0000 |
commit | 83658d6e7ac38a35dbbd9ef78b38b4705111e6c1 (patch) | |
tree | 671c7623bef0badf6f246c9a2d8a0ed750d4be0a /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | |
parent | 3f61c1ab5eedcb8621060014f863579862a33e04 (diff) | |
download | llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.zip llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.tar.gz llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.tar.bz2 |
Return a StringRef from getSection.
This is similar to how getName is handled.
llvm-svn: 269218
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-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 8586453..a4a52b7 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -1242,7 +1242,7 @@ bool AddressSanitizerModule::ShouldInstrumentGlobal(GlobalVariable *G) { if (G->getAlignment() > MinRedzoneSizeForGlobal()) return false; if (G->hasSection()) { - StringRef Section(G->getSection()); + StringRef Section = G->getSection(); // Globals from llvm.metadata aren't emitted, do not instrument them. if (Section == "llvm.metadata") return false; |