summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/MetadataTest.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-16 17:33:08 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-16 17:33:08 +0000
commit2f5bb31302fb5f09b997fe5b3b7474665eab6141 (patch)
tree137013d010e9ba832a2692b59f716a067844612b /llvm/unittests/IR/MetadataTest.cpp
parentc9cddb083746c5a52f87f52f17d2555e0ead9422 (diff)
downloadbcm5719-llvm-2f5bb31302fb5f09b997fe5b3b7474665eab6141.tar.gz
bcm5719-llvm-2f5bb31302fb5f09b997fe5b3b7474665eab6141.zip
IR: Allow 16-bits for column info
Raise the limit for column information from 8 bits to 16 bits. llvm-svn: 226291
Diffstat (limited to 'llvm/unittests/IR/MetadataTest.cpp')
-rw-r--r--llvm/unittests/IR/MetadataTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp
index f862f049fcc..83fd0c164f6 100644
--- a/llvm/unittests/IR/MetadataTest.cpp
+++ b/llvm/unittests/IR/MetadataTest.cpp
@@ -397,19 +397,19 @@ TEST_F(MDLocationTest, Overflow) {
EXPECT_EQ(7u, L->getColumn());
}
unsigned U24 = 1u << 24;
- unsigned U8 = 1u << 8;
+ unsigned U16 = 1u << 16;
{
- MDLocation *L = MDLocation::get(Context, U24 - 1, U8 - 1, N);
+ MDLocation *L = MDLocation::get(Context, U24 - 1, U16 - 1, N);
EXPECT_EQ(U24 - 1, L->getLine());
- EXPECT_EQ(U8 - 1, L->getColumn());
+ EXPECT_EQ(U16 - 1, L->getColumn());
}
{
- MDLocation *L = MDLocation::get(Context, U24, U8, N);
+ MDLocation *L = MDLocation::get(Context, U24, U16, N);
EXPECT_EQ(0u, L->getLine());
EXPECT_EQ(0u, L->getColumn());
}
{
- MDLocation *L = MDLocation::get(Context, U24 + 1, U8 + 1, N);
+ MDLocation *L = MDLocation::get(Context, U24 + 1, U16 + 1, N);
EXPECT_EQ(0u, L->getLine());
EXPECT_EQ(0u, L->getColumn());
}
OpenPOWER on IntegriCloud