From: Rafael Espindola Date: Mon, 12 Jul 2010 18:11:17 +0000 (+0000) Subject: Fix a typo and fit in 80 columns. Found by Bob Wilson. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9d544d04166b971ab5ca1ee7ee37465b4af6bbf5;p=oota-llvm.git Fix a typo and fit in 80 columns. Found by Bob Wilson. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108164 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 30aadf6bdf8..2b6e4fa8526 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1527,7 +1527,7 @@ private: /// buffers unsigned JumpBufAlignment; - /// MinStackArgumentAlignment - The minimum alginment that any argument + /// MinStackArgumentAlignment - The minimum alignment that any argument /// on the stack needs to have. /// unsigned MinStackArgumentAlignment; diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index ea41ec63a52..d323c163c14 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -5670,10 +5670,11 @@ void SelectionDAGBuilder::visitVAStart(const CallInst &I) { } void SelectionDAGBuilder::visitVAArg(const VAArgInst &I) { + const TargetData &TD = *TLI.getTargetData(); SDValue V = DAG.getVAArg(TLI.getValueType(I.getType()), getCurDebugLoc(), getRoot(), getValue(I.getOperand(0)), DAG.getSrcValue(I.getOperand(0)), - TLI.getTargetData()->getABITypeAlignment(I.getType())); + TD.getABITypeAlignment(I.getType())); setValue(&I, V); DAG.setRoot(V.getValue(1)); }