Remove a variable write that is not needed after d03838343f2.
authorNico Weber <thakis@chromium.org>
Mon, 11 May 2020 00:13:05 +0000 (20:13 -0400)
committerNico Weber <thakis@chromium.org>
Mon, 11 May 2020 00:13:45 +0000 (20:13 -0400)
llvm/cmake/modules/AddLLVM.cmake

index 7f8e413..5c8bdb5 100644 (file)
@@ -1504,8 +1504,7 @@ string(CONCAT LLVM_LIT_PATH_FUNCTION
   "# Allow generated file to be relocatable.\n"
   "def path(p):\n"
   "    if not p: return ''\n"
-  "    p = os.path.join(os.path.dirname(os.path.abspath(__file__)), p)\n"
-  "    return p\n"
+  "    return os.path.join(os.path.dirname(os.path.abspath(__file__)), p)\n"
   )
 
 # This function provides an automatic way to 'configure'-like generate a file