Displaying 2 results from an estimated 2 matches for "9d592482".
2018 Aug 07
2
Error Calling eraseFromParent()
The code is really simple. But I can not the reason for the segmentation
fault. I only know that the eraseFromParent() function leads to it. The
whole code is:
...
bool runOnFunction(Function &F) override {
for (auto &I : instructions(F)) {
if (auto* op = dyn_cast<BinaryOperator>(&I)) {
IRBuilder<> builder(op);
Value* lhs = op->getOperand(0);
Value* rhs =
2018 Aug 07
2
Error Calling eraseFromParent()
...gt;
> }
> ...
> And I think that the code worked well with LLVM-3.6.0 that I tested one
> year ago. Now, I use LLVM-6.0.0.
> Regards.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180808/9d592482/attachment.html>