diff --git a/enzyme/tools/enzyme-tblgen/enzyme-tblgen.cpp b/enzyme/tools/enzyme-tblgen/enzyme-tblgen.cpp index e66d01dd9ab0..328da7aa14b6 100644 --- a/enzyme/tools/enzyme-tblgen/enzyme-tblgen.cpp +++ b/enzyme/tools/enzyme-tblgen/enzyme-tblgen.cpp @@ -1290,7 +1290,7 @@ static void emitHeaderIncludes(const RecordKeeper &recordKeeper, #if LLVM_VERSION_MAJOR >= 12 pattern->getFieldLoc("filename_in"), #else - pattern->getLoc()[1], + SMLoc::getFromPointer(nullptr), #endif included_file); if (!buf)