This is really embarrassing. Those are pointers, so that offsets the
pointers, not the statistics pointed-by the pointer...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375290
91177308-0d34-0410-b5e6-
96231b3b80d8
auto *Inst = dyn_cast<Instruction>(V);
if (NewNSW) {
++NumNW;
- ++OpcNW;
+ ++*OpcNW;
++NumNSW;
- ++OpcNSW;
+ ++*OpcNSW;
if (Inst)
Inst->setHasNoSignedWrap();
}
if (NewNUW) {
++NumNW;
- ++OpcNW;
+ ++*OpcNW;
++NumNUW;
- ++OpcNUW;
+ ++*OpcNUW;
if (Inst)
Inst->setHasNoUnsignedWrap();
}