From: Zachary Turner Date: Thu, 22 Sep 2016 19:21:32 +0000 (+0000) Subject: Fix build breakage due to typo in cast. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09666276570c2c31f6752a41dd2a16f7c79b5461;p=llvm Fix build breakage due to typo in cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282183 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index 94f0538e445..44b14d20dee 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -426,7 +426,7 @@ namespace llvm { consumeInteger(unsigned Radix, T &Result) { unsigned long long ULLVal; if (consumeUnsignedInteger(*this, Radix, ULLVal) || - static_cast(static_cast(ULLVal)) != ULLVal) + static_cast(static_cast(ULLVal)) != ULLVal) return true; Result = ULLVal; return false; diff --git a/unittests/ADT/StringRefTest.cpp b/unittests/ADT/StringRefTest.cpp index 40ab4e038b8..39ed71b77e9 100644 --- a/unittests/ADT/StringRefTest.cpp +++ b/unittests/ADT/StringRefTest.cpp @@ -580,6 +580,8 @@ static const char* BadStrings[] = { , "08" // illegal oct characters , "0o8" // illegal oct characters , "-123" // negative unsigned value + , "0x" + , "0b" };