================
@@ -686,6 +686,20 @@ static Value *EmitSignBit(CodeGenFunction &CGF, Value *V) {
return CGF.Builder.CreateICmpSLT(V, Zero);
}
+static bool hasPointerArgsOrPointerReturnType(const Value *V) {
+ if (const CallBase *CB = dyn_cast<CallBase>(V)) {
+ for (const Value *A : CB->args()) {
+ if (A->getType()->isPointerTy()) {
+ return true;
+ }
+ }
+ if (CB->getFunctionType()->getReturnType()->isPointerTy()) {
+ return true;
+ }
----------------
arsenm wrote:
Don't need braces
https://github.com/llvm/llvm-project/pull/107598
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits