aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-02-23 08:25:25 +0000
committerDuncan Sands <baldrick@free.fr>2012-02-23 08:25:25 +0000
commit9778ad51ee1d2a604b6cc4bece336d2bc4bfbe20 (patch)
tree6b997bfab438e511b55b4afed35119d4e14a6916
parent6212d312e7c6b978b767f648fd2d301131554242 (diff)
An easy case where GCC should really be able to work out that the value is only
used if IsInDevelopmentTree is 'true'. But it doesn't, so help it out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151244 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/llvm-config/llvm-config.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp
index 641c2c4e69..79fd7f8c5a 100644
--- a/tools/llvm-config/llvm-config.cpp
+++ b/tools/llvm-config/llvm-config.cpp
@@ -206,6 +206,7 @@ int main(int argc, char **argv) {
ActiveObjRoot = LLVM_OBJ_ROOT;
} else {
IsInDevelopmentTree = false;
+ DevelopmentTreeLayout = MakefileStyle; // Initialized to avoid warnings.
}
// Compute various directory locations based on the derived location