[LLVMdev] Clang build problem

Eli Friedman eli.friedman at gmail.com
Mon Mar 1 12:23:42 PST 2010


On Mon, Mar 1, 2010 at 12:18 PM, Neale Ferguson <neale at sinenomine.net> wrote:
> Just got clang from head and getting:
>
> ExprConstant.cpp: In function Obool
> TryEvaluateBuiltinNaN(clang::ASTContext&, clang::QualType, const
> clang::Expr*, bool, llvm::APFloat&)¹:
> ExprConstant.cpp:1578: error: no matching function for call to
> Ollvm::StringRef::getAsInteger(int, llvm::APInt&)¹
> /home/neale/LLVM/llvm/include/llvm/ADT/StringRef.h:269: note: candidates
> are: bool llvm::StringRef::getAsInteger(unsigned int, long long int&) const
> /home/neale/LLVM/llvm/include/llvm/ADT/StringRef.h:270: note:
> bool llvm::StringRef::getAsInteger(unsigned int, long long unsigned int&)
> const
> /home/neale/LLVM/llvm/include/llvm/ADT/StringRef.h:271: note:
> bool llvm::StringRef::getAsInteger(unsigned int, int&) const
> /home/neale/LLVM/llvm/include/llvm/ADT/StringRef.h:272: note:
> bool llvm::StringRef::getAsInteger(unsigned int, unsigned int&) const
> ExprConstant.cpp:1582: error: OgetSNaN¹ is not a member of Ollvm::APFloat¹
> ExprConstant.cpp:1584: error: OgetQNaN¹ is not a member of Ollvm::APFloat¹
> make[2]: ***
> [/home/neale/LLVM/llvm/tools/clang/lib/AST/Debug/ExprConstant.o] Error 1

Try updating LLVM?

-Eli




More information about the llvm-dev mailing list