diff options
author | Frederic Riss <friss@apple.com> | 2015-03-05 14:43:15 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2015-03-05 14:43:15 +0000 |
commit | 0d94ef9b2c73a030fd617675580652063c24ace3 (patch) | |
tree | f608d291d4646d9b3fa6bf9e462eada451828f16 /llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp | |
parent | 72f169797e7c81fb9b40f764c9d129ff43e854d6 (diff) | |
download | bcm5719-llvm-0d94ef9b2c73a030fd617675580652063c24ace3.tar.gz bcm5719-llvm-0d94ef9b2c73a030fd617675580652063c24ace3.zip |
Fix -Woverflow warning in unittest.
llvm-svn: 231368
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp')
-rw-r--r-- | llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp index be78f116ce4..efcfcc0a9dc 100644 --- a/llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp @@ -97,7 +97,7 @@ TEST(DWARFFormValue, SignedConstantForms) { // Check that we can handle big positive values, but that we return // an error just over the limit. auto UMax = createULEBFormValue(LLONG_MAX); - auto TooBig = createULEBFormValue(LLONG_MAX + 1); + auto TooBig = createULEBFormValue(uint64_t(LLONG_MAX) + 1); EXPECT_EQ(UMax.getAsSignedConstant().getValue(), LLONG_MAX); EXPECT_EQ(TooBig.getAsSignedConstant().hasValue(), false); |