Fix more -Wcast-qual warnings.
[oota-llvm.git] / tools / llvm-ld / llvm-ld.cpp
index 29b74b8a72bf9595d9bb32dd46046019956d19dd..ce52b59f0d26742a669db4d6a2acdbfbec200fee 100644 (file)
@@ -399,7 +399,7 @@ static int GenerateNative(const std::string &OutputFilename,
 
   // Run the compiler to assembly and link together the program.
   int R = sys::Program::ExecuteAndWait(
-    gcc, &Args[0], (const char**)clean_env, 0, 0, 0, &ErrMsg);
+    gcc, &Args[0], const_cast<const char **>(clean_env), 0, 0, 0, &ErrMsg);
   delete [] clean_env;
   return R;
 }