summaryrefslogtreecommitdiffstats
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
commitf320be852125ba42962dd5be2834b6d089a58cc2 (patch)
tree44b4a9ff131f31992ff3637d5d6c198aa6b50832
parent1462633b401236fdbaea1c1353a8cc723ee3a42d (diff)
downloadbcm5719-llvm-f320be852125ba42962dd5be2834b6d089a58cc2.tar.gz
bcm5719-llvm-f320be852125ba42962dd5be2834b6d089a58cc2.zip
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. llvm-svn: 151244
-rw-r--r--llvm/tools/llvm-config/llvm-config.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp
index 641c2c4e69c..79fd7f8c5ae 100644
--- a/llvm/tools/llvm-config/llvm-config.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud