[PATCH] D13829: WIP: clean up the way optional Function data is managed

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 13:04:37 PDT 2015


sanjoy added inline comments.

================
Comment at: lib/IR/Function.cpp:973
@@ +972,3 @@
+  allocHungoffUselist();
+  Op<Idx>().set(
+      C ? C : ConstantPointerNull::get(Type::getInt1PtrTy(getContext(), 0)));
----------------
By not supporting `setHungoffOperand(nullptr)`, I meant putting an `assert(C && "nullptr not allowed!")` here.


http://reviews.llvm.org/D13829





More information about the llvm-commits mailing list