projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38bacf2
)
std::string(NULL) does not a proper constructor make
author
Misha Brukman
<brukman+llvm@gmail.com>
Tue, 3 May 2005 06:10:51 +0000
(06:10 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Tue, 3 May 2005 06:10:51 +0000
(06:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21666
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvmc/llvmc.cpp
patch
|
blob
|
history
diff --git
a/tools/llvmc/llvmc.cpp
b/tools/llvmc/llvmc.cpp
index d6409af3e0a89e5cce7ce0e378f3f3a5c3782964..4f325e68e09a4cbcb4e510264ff152e47cfecd08 100644
(file)
--- a/
tools/llvmc/llvmc.cpp
+++ b/
tools/llvmc/llvmc.cpp
@@
-281,9
+281,9
@@
int main(int argc, char **argv) {
// If the LLVM_LIB_SEARCH_PATH environment variable is
// set, append it to the list of places to search for libraries
-
std::string
srchPath = getenv("LLVM_LIB_SEARCH_PATH");
- if (
!srchPath.empty()
)
- LibPaths.push_back(s
rchPath
);
+
char *
srchPath = getenv("LLVM_LIB_SEARCH_PATH");
+ if (
srchPath != NULL && strlen(srchPath) != 0
)
+ LibPaths.push_back(s
td::string(srchPath)
);
// Set the driver flags based on command line options
unsigned flags = 0;