about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorMartin Nowack <martin.nowack@gmail.com>2013-08-29 12:12:14 +0200
committerMartin Nowack <martin.nowack@gmail.com>2013-08-29 12:14:10 +0200
commit565b8567b616988d5f1269ac6fc8418c542563c4 (patch)
tree185ed3d613b7348b155d4f1333103446bc5c722c /tools
parent5c059018c02a7c7db252a3cb636a39c89c430a06 (diff)
downloadklee-565b8567b616988d5f1269ac6fc8418c542563c4.tar.gz
Fix compiling issues with llvm 2.9
Interface for ParseCommandLineOptions changed with LLVM 3.2
preserving constness for pointer to arguments.
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 9060e354..42c0c4ba 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -604,7 +604,11 @@ static void parseArguments(int argc, char **argv) {
     argArray[i] = arguments[i-1].c_str();
   }
 
+#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 2)
   cl::ParseCommandLineOptions(numArgs, (const char**) argArray, " klee\n");
+#else
+  cl::ParseCommandLineOptions(numArgs, (char**) argArray, " klee\n");
+#endif
   delete[] argArray;
 }