mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
std::string(NULL) does not a proper constructor make
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38bacf29e8
commit
3a98ff8d3a
@ -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(srchPath);
|
||||
char *srchPath = getenv("LLVM_LIB_SEARCH_PATH");
|
||||
if (srchPath != NULL && strlen(srchPath) != 0)
|
||||
LibPaths.push_back(std::string(srchPath));
|
||||
|
||||
// Set the driver flags based on command line options
|
||||
unsigned flags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user