From b773203fb58f3ef282fb69c832d8710cab5bc82d Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 27 Jan 2019 16:42:12 +0000 Subject: Import LLVM 7.0.1 release including clang, lld and lldb. --- gnu/llvm/lib/CodeGen/MachineFrameInfo.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gnu/llvm/lib/CodeGen/MachineFrameInfo.cpp') diff --git a/gnu/llvm/lib/CodeGen/MachineFrameInfo.cpp b/gnu/llvm/lib/CodeGen/MachineFrameInfo.cpp index 2aa9d6b816c..0b316871dbd 100644 --- a/gnu/llvm/lib/CodeGen/MachineFrameInfo.cpp +++ b/gnu/llvm/lib/CodeGen/MachineFrameInfo.cpp @@ -20,6 +20,7 @@ #include "llvm/CodeGen/TargetInstrInfo.h" #include "llvm/CodeGen/TargetRegisterInfo.h" #include "llvm/CodeGen/TargetSubtargetInfo.h" +#include "llvm/Config/llvm-config.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" #include @@ -40,9 +41,9 @@ static inline unsigned clampStackAlignment(bool ShouldClamp, unsigned Align, unsigned StackAlign) { if (!ShouldClamp || Align <= StackAlign) return Align; - DEBUG(dbgs() << "Warning: requested alignment " << Align - << " exceeds the stack alignment " << StackAlign - << " when stack realignment is off" << '\n'); + LLVM_DEBUG(dbgs() << "Warning: requested alignment " << Align + << " exceeds the stack alignment " << StackAlign + << " when stack realignment is off" << '\n'); return StackAlign; } @@ -217,7 +218,7 @@ void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{ OS << " fi#" << (int)(i-NumFixedObjects) << ": "; if (SO.StackID != 0) - OS << "id=" << SO.StackID << ' '; + OS << "id=" << static_cast(SO.StackID) << ' '; if (SO.Size == ~0ULL) { OS << "dead\n"; -- cgit v1.2.3-59-g8ed1b