From: Devang Patel Date: Mon, 15 Aug 2011 21:35:16 +0000 (+0000) Subject: Fix warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c890b19226673d7004eaff7433834b2e5223bdea;p=oota-llvm.git Fix warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137658 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 69791a9684b..0fa820dee21 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -467,7 +467,7 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, LexicalScope *Scope) { } else { // .. else use frame index. int FI = DV->getFrameIndex(); - if (FI != ~0U) { + if (FI != ~0) { unsigned FrameReg = 0; const TargetFrameLowering *TFI = Asm->TM.getFrameLowering(); int Offset = diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index 80f82ad9710..7f26850dedf 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -132,7 +132,7 @@ public: // AbsVar may be NULL. DbgVariable(DIVariable V, DbgVariable *AV) : Var(V), TheDIE(0), DotDebugLocOffset(~0U), AbsVar(AV), MInsn(0), - FrameIndex(~0U) {} + FrameIndex(~0) {} // Accessors. DIVariable getVariable() const { return Var; }