Skip to content

Commit 2188ad8

Browse files
committed
JLInstSimplify: argument embarassing bugfix
1 parent 410e87b commit 2188ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enzyme/Enzyme/JLInstSimplify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ bool jlInstSimplify(llvm::Function &F, TargetLibraryInfo &TLI,
113113
for (int i = 0; i < 2; i++) {
114114
Value *start = (i == 0) ? lhsv : rhsv;
115115
Instruction *starti = dyn_cast<Instruction>(start);
116-
if (!isa<Argument>(starti))
116+
if (!isa<Argument>(start))
117117
continue;
118118
if (!starti) {
119-
starti = &cast<Argument>(starti)
119+
starti = &cast<Argument>(start)
120120
->getParent()
121121
->getEntryBlock()
122122
.front();

0 commit comments

Comments
 (0)