summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/ExecutionDriver.cpp2
-rw-r--r--tools/llvm-ld/llvm-ld.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp
index f71d7bace6..dedf91eb03 100644
--- a/tools/bugpoint/ExecutionDriver.cpp
+++ b/tools/bugpoint/ExecutionDriver.cpp
@@ -320,7 +320,7 @@ std::string BugDriver::compileSharedObject(const std::string &BytecodeFile) {
bool BugDriver::createReferenceFile(Module *M, const std::string &Filename) {
try {
compileProgram(Program);
- } catch (ToolExecutionError &TEE) {
+ } catch (ToolExecutionError &) {
return false;
}
try {
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index ab7109fb85..a7f15a9c3f 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -499,7 +499,7 @@ int main(int argc, char **argv, char **envp) {
// Get the program arguments
sys::Path tmp_output("opt_result");
std::string ErrMsg;
- if (tmp_output.createTemporaryFileOnDisk(&ErrMsg)) {
+ if (tmp_output.createTemporaryFileOnDisk(true)) {
return PrintAndReturn(ErrMsg);
}
const char* args[4];