[PATCH] D119636: [NFC][IR] Value: assert this->takeName(this)
Dmitry Vassiliev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 13 10:48:49 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd97d4d8d754d: [NFC][IR] Value: assert this->takeName(this) (authored by slydiman).
Changed prior to commit:
https://reviews.llvm.org/D119636?vs=408190&id=408280#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119636/new/
https://reviews.llvm.org/D119636
Files:
llvm/lib/IR/Value.cpp
Index: llvm/lib/IR/Value.cpp
===================================================================
--- llvm/lib/IR/Value.cpp
+++ llvm/lib/IR/Value.cpp
@@ -377,6 +377,7 @@
}
void Value::takeName(Value *V) {
+ assert(V != this && "Illegal call to this->takeName(this)!");
ValueSymbolTable *ST = nullptr;
// If this value has a name, drop it.
if (hasName()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119636.408280.patch
Type: text/x-patch
Size: 369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220213/623b7a2b/attachment.bin>
More information about the llvm-commits
mailing list