summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2022-06-06 21:43:47 -0700
committerVitaly Buka <vitalybuka@google.com>2022-06-07 14:08:43 -0700
commitf32ad5703e83435522df18b862979b83cc5bf7c3 (patch)
tree606351282d095d3044730ee8f7e051b1c0ace7fa /clang/lib/CodeGen/CodeGenModule.cpp
parent5d9de5f446601d80ebbe5e281f783912b3585bad (diff)
[NFC] Move part of SanitizerMetadata into private method
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 1d6972892958..21f721963991 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -5677,8 +5677,7 @@ CodeGenModule::GetAddrOfConstantStringFromLiteral(const StringLiteral *S,
if (Entry)
*Entry = GV;
- SanitizerMD->reportGlobal(GV, S->getStrTokenLoc(0), "<string literal>",
- QualType());
+ SanitizerMD->reportGlobal(GV, S->getStrTokenLoc(0), "<string literal>");
return ConstantAddress(castStringLiteralToDefaultAddressSpace(*this, GV),
GV->getValueType(), Alignment);