[PATCH] D60210: llvm-undname: Name a pair. No behavior change.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 3 16:29:10 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL357653: llvm-undname: Name a pair. No behavior change. (authored by nico, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D60210?vs=193522&id=193628#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60210/new/
https://reviews.llvm.org/D60210
Files:
llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
Index: llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
===================================================================
--- llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
+++ llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
@@ -1327,8 +1327,10 @@
NamedIdentifierNode *Identifier = Arena.alloc<NamedIdentifierNode>();
MangledName.consumeFront('?');
- auto Number = demangleNumber(MangledName);
- assert(!Number.second);
+ uint64_t Number = 0;
+ bool IsNegative = false;
+ std::tie(Number, IsNegative) = demangleNumber(MangledName);
+ assert(!IsNegative);
// One ? to terminate the number
MangledName.consumeFront('?');
@@ -1346,7 +1348,7 @@
OS << '`';
Scope->output(OS, OF_Default);
OS << '\'';
- OS << "::`" << Number.first << "'";
+ OS << "::`" << Number << "'";
OS << '\0';
char *Result = OS.getBuffer();
Identifier->Name = copyString(Result);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60210.193628.patch
Type: text/x-patch
Size: 885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190403/4895e9d3/attachment.bin>
More information about the llvm-commits
mailing list