[PATCH] D50220: [DebugInfo] Refactor DbgInfoIntrinsic class hierarchy.
Hsiangkai Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 4 03:19:26 PDT 2018
HsiangKai added inline comments.
================
Comment at: lib/IR/IntrinsicInst.cpp:49
// When the value goes to null, it gets replaced by an empty MDNode.
- assert((isa<DbgLabelInst>(this)
- || !cast<MDNode>(MD)->getNumOperands())
- && "DbgValueInst Expected an empty MDNode");
-
+ assert(!cast<MDNode>(MD)->getNumOperands() && "Expected an empty MDNode");
return nullptr;
----------------
Revert rL336176 here.
Repository:
rL LLVM
https://reviews.llvm.org/D50220
More information about the llvm-commits
mailing list