Skip to content

Commit 1f4606a

Browse files
authored
Merge pull request swiftlang#12083 from DougGregor/demangler-past-the-end-read
[Demangler] Eliminate a read-past-the-end-of-a-buffer misuse of StringRef.
2 parents 879c0c6 + 1e769e1 commit 1f4606a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Demangling/Context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void Context::clear() {
3636
}
3737

3838
NodePointer Context::demangleSymbolAsNode(llvm::StringRef MangledName) {
39-
if (isMangledName(MangledName.data())) {
39+
if (isMangledName(MangledName)) {
4040
return D->demangleSymbol(MangledName);
4141
}
4242
return demangleOldSymbolAsNode(MangledName, *D);

0 commit comments

Comments
 (0)