-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[MemProf] Avoid assertion checking loop under NDEBUG (NFC) #138985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5242,6 +5242,7 @@ bool MemProfContextDisambiguation::applyImport(Module &M) { | |
| assert(AI != FS->allocs().end()); | ||
| auto &AllocNode = *(AI++); | ||
|
|
||
| #ifndef NDEBUG | ||
| // Sanity check that the MIB stack ids match between the summary and | ||
| // instruction metadata. | ||
| auto MIBIter = AllocNode.MIBs.begin(); | ||
|
||
|
|
@@ -5276,6 +5277,7 @@ bool MemProfContextDisambiguation::applyImport(Module &M) { | |
| } | ||
| MIBIter++; | ||
| } | ||
| #endif | ||
|
|
||
| // Perform cloning if not yet done. | ||
| CloneFuncIfNeeded(/*NumClones=*/AllocNode.Versions.size()); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.