Skip to content

Branch mismatcharg fails to compile  #1839

@davidedelvento

Description

@davidedelvento

Thanks @wsmoses for making the branch mismatcharg to debug my issue. I believe there is a typo in that branch which I think is so small that don't even deserve a PR (but I can open that if you so prefer).

This is the change I made and with it, the branch appears to work fine and produce the appropriate (extremely long) debug information. I hope to be able to sift through that log and find the problem without further bothering you.

diff --git a/enzyme/Enzyme/AdjointGenerator.h b/enzyme/Enzyme/AdjointGenerator.h
index 70514ba1..0bd29647 100644
--- a/enzyme/Enzyme/AdjointGenerator.h
+++ b/enzyme/Enzyme/AdjointGenerator.h
@@ -5283,7 +5283,7 @@ public:
         llvm::errs() << call << "\n";
         llvm::errs() << " number of arg operands != function parameters\n";
         EmitFailure("MismatchArgs", call.getDebugLoc(), &call,
-                    "Number of arg operands != function parameters\n", *call);
+                    "Number of arg operands != function parameters\n", call);
       }
     }

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions