[llvm-commits] [llvm] r170019 - in /llvm/trunk: docs/YamlIO.rst docs/userguides.rst include/llvm/Support/YAMLTraits.h lib/Support/CMakeLists.txt lib/Support/YAMLTraits.cpp unittests/Support/CMakeLists.txt unittests/Support/YAMLIOTest.cpp

Nick Kledzik kledzik at apple.com
Wed Dec 12 13:46:26 PST 2012


On Dec 12, 2012, at 1:25 PM, Malea, Daniel wrote:

> Hi Nick,
> 
> I am trying to build llvm trunk on Linux (Ubuntu 12.04) and I'm running into:
> 
> /home/daniel/clang-tools-extra/llvm/lib/Support/YAMLTraits.cpp:707:10: error: no matching function for call to 'getAsSignedInteger'
>    if ( getAsSignedInteger(Scalar, 0, n) )
>         ^~~~~~~~~~~~~~~~~~
> /home/daniel/clang-tools-extra/llvm/include/llvm/ADT/StringRef.h:32:8: note: candidate function not viable: no known conversion from 'unsigned long long' to 'long long &' for 3rd argument
>  bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
>       ^
> /home/daniel/clang-tools-extra/llvm/lib/Support/YAMLTraits.cpp:709:32: warning: comparison of integers of different signs: 'unsigned long long' and 'int' [-Wsign-compare]
>    if ( (n > INT16_MAX) || (n < INT16_MIN) )
>                             ~ ^ ~~~~~~~~~
> ...
> 
> Can you please take a look?
Should be fixed in 170030.

-Nick







More information about the llvm-commits mailing list