mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Verifier: Check for null operands in !llvm.module.flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228818 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -869,7 +869,7 @@ Verifier::visitModuleFlag(const MDNode *Op,
|
||||
Module::ModFlagBehavior MFB;
|
||||
if (!Module::isValidModFlagBehavior(Op->getOperand(0), MFB)) {
|
||||
Assert1(
|
||||
mdconst::dyn_extract<ConstantInt>(Op->getOperand(0)),
|
||||
mdconst::dyn_extract_or_null<ConstantInt>(Op->getOperand(0)),
|
||||
"invalid behavior operand in module flag (expected constant integer)",
|
||||
Op->getOperand(0));
|
||||
Assert1(false,
|
||||
|
Reference in New Issue
Block a user