them into the constant pool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14128
91177308-0d34-0410-b5e6-
96231b3b80d8
return (uint64_t) CB->getValue();
}
+ // ConstantPointerNull: it's really just a big, shiny version of zero.
+ if (const ConstantPointerNull *CPN = dyn_cast<ConstantPointerNull>(V)) {
+ isValidConstant = true;
+ return 0;
+ }
+
// For other types of constants, some conversion may be needed.
// First, extract the constant operand according to its own type
if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(V))