summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2015-03-09 21:09:50 +0000
committerFrederic Riss <friss@apple.com>2015-03-09 21:09:50 +0000
commit2ad5188f2d9374c8acc5c7e241a67000fd00eee3 (patch)
treea9cd2ec6ec6a13f59b122bab003654edeaefe283
parent29dec576e62fe3e108474fd7a155ecd4ee49c8ff (diff)
downloadbcm5719-llvm-2ad5188f2d9374c8acc5c7e241a67000fd00eee3.tar.gz
bcm5719-llvm-2ad5188f2d9374c8acc5c7e241a67000fd00eee3.zip
DwarfAccelTable: fix obvious typo.
I have a test for that issue, but I didn't include it in the commit as it's a 200KB file for a pretty minor issue. (The reason the file is so big is that it needs > 1024 variables/functions to trigger and that with debug information. The issue/fix on the other side is totally trivial. If poeple want the test commited, I can do that. It just didn't seem worth it to me. llvm-svn: 231701
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
index e82429ff834..4a13cc260ad 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
@@ -54,7 +54,7 @@ void DwarfAccelTable::ComputeBucketCount(void) {
// Then compute the bucket size, minimum of 1 bucket.
if (num > 1024)
Header.bucket_count = num / 4;
- if (num > 16)
+ else if (num > 16)
Header.bucket_count = num / 2;
else
Header.bucket_count = num > 0 ? num : 1;
OpenPOWER on IntegriCloud