From 49987866b16513ac0b207647ada476683e8d2049 Mon Sep 17 00:00:00 2001 From: Richard Osborne Date: Sat, 4 May 2013 17:41:01 +0000 Subject: [PATCH] Fix buildbot failure on 64 bit linux due to std::max() having different operand types. llvm-svn: 181128 --- lib/Target/XCore/XCoreISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/XCore/XCoreISelLowering.cpp b/lib/Target/XCore/XCoreISelLowering.cpp index dfa8ad732fc..2d27f1a0f6e 100644 --- a/lib/Target/XCore/XCoreISelLowering.cpp +++ b/lib/Target/XCore/XCoreISelLowering.cpp @@ -248,7 +248,7 @@ LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const const GlobalValue *GV = GN->getGlobal(); int64_t Offset = GN->getOffset(); // We can only fold positive offsets that are a multiple of the word size. - int64_t FoldedOffset = std::max(Offset & ~3, 0LL); + int64_t FoldedOffset = std::max(Offset & ~3, (int64_t)0); SDValue GA = DAG.getTargetGlobalAddress(GV, DL, MVT::i32, FoldedOffset); GA = getGlobalAddressWrapper(GA, GV, DAG); // Handle the rest of the offset.