diff --git a/core/metacling/src/TCling.cxx b/core/metacling/src/TCling.cxx
index 0ecdb2b5dfb7ba033dcc082c5751d2f2996cc8cf..4138470af39013eb46800b1c6a6041f21651a57d 100644
--- a/core/metacling/src/TCling.cxx
+++ b/core/metacling/src/TCling.cxx
@@ -1950,7 +1950,7 @@ void TCling::RegisterModule(const char* modulename,
          pcmFileNameFullPath = dyLibName;
          // The path dyLibName might not be absolute. This can happen if dyLibName
          // is linked to an executable in the same folder.
-         llvm::sys::fs::make_absolute(pcmFileNameFullPath, pcmFileNameFullPath);
+         llvm::sys::fs::make_absolute(pcmFileNameFullPath);
       } else {
          // if we were in the case of late registration
          assert(lateRegistration);