[llvm] e3a4463 - Remove a variable write that is not needed after d03838343f2.

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sun May 10 17:14:12 PDT 2020


Author: Nico Weber
Date: 2020-05-10T20:13:45-04:00
New Revision: e3a44634460a3b29550f37e82c9dcd3faa741626

URL: https://github.com/llvm/llvm-project/commit/e3a44634460a3b29550f37e82c9dcd3faa741626
DIFF: https://github.com/llvm/llvm-project/commit/e3a44634460a3b29550f37e82c9dcd3faa741626.diff

LOG: Remove  a variable write that is not needed after d03838343f2.

Added: 
    

Modified: 
    llvm/cmake/modules/AddLLVM.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 7f8e4135c02c..5c8bdb56106e 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -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


        


More information about the llvm-commits mailing list