serge-sans-paille added inline comments.

================
Comment at: llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp:697
+    Builder.CreateCall(WriteoutF);
+    if (NextInst != Parent->end()) {
+      DebugLoc Loc = E->getDebugLoc();
----------------
I'm puzzled by this test. ``F`` is a CallInst, so not a terminator, so how can 
`NextInst` be past the Terminator?


================
Comment at: llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp:1263
+  Type *RetTy = ResetF->getReturnType();
+  if (RetTy == Type::getVoidTy(*Ctx))
+    Builder.CreateRetVoid();
----------------
[nit] could be  `if (RetTy->isVoidTy())`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78477/new/

https://reviews.llvm.org/D78477



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to