X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FInstructions.h;h=955522539e01a49a6bf77e103989f9d0433e79c6;hb=37eeb058a30200101836d82098542d3d2fc4f3d5;hp=99186f5f50a5606f5412d69b11f20d8713e2b108;hpb=f8d14c4ca3874890cfd8867d9557efca9511c98f;p=oota-llvm.git diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 99186f5f50a..955522539e0 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -701,7 +701,7 @@ DEFINE_TRANSPARENT_OPERAND_ACCESSORS(AtomicRMWInst, Value) // checkGEPType - Simple wrapper function to give a better assertion failure // message on bad indexes for a gep instruction. // -static inline Type *checkGEPType(Type *Ty) { +inline Type *checkGEPType(Type *Ty) { assert(Ty && "Invalid GetElementPtrInst indices for type!"); return Ty; } @@ -2239,7 +2239,7 @@ public: /// getNumClauses - Get the number of clauses for this landing pad. unsigned getNumClauses() const { return getNumOperands() - 1; } - /// reserveClauses - Grow the size of the operand list to accomodate the new + /// reserveClauses - Grow the size of the operand list to accommodate the new /// number of clauses. void reserveClauses(unsigned Size) { growOperands(Size); } @@ -2660,7 +2660,7 @@ public: // FIXME: Currently we work with ConstantInt based cases. // So return CaseValue as ConstantInt. - return R.Low.toConstantInt(); + return R.getLow().toConstantInt(); } /// Resolves case value for current case.