diff options
| author | Mon P Wang <wangmp@apple.com> | 2008-07-02 17:07:12 +0000 | 
|---|---|---|
| committer | Mon P Wang <wangmp@apple.com> | 2008-07-02 17:07:12 +0000 | 
| commit | cd0e9b32e09067519485bf89a55f8b69c3c42eee (patch) | |
| tree | 60b7a784e42ba0fb9c700f9710d6e8baed919b52 /include/llvm/CodeGen/SelectionDAG.h | |
| parent | a113d3e7f84958bf2289297d014e2512a84ce80e (diff) | |
| download | external_llvm-cd0e9b32e09067519485bf89a55f8b69c3c42eee.zip external_llvm-cd0e9b32e09067519485bf89a55f8b69c3c42eee.tar.gz external_llvm-cd0e9b32e09067519485bf89a55f8b69c3c42eee.tar.bz2 | |
Fixed problem in EmitStackConvert where the source and target type
have different alignment by creating a stack slot with the max
alignment of source and target type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAG.h')
| -rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 6e9a239..994f66c 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -574,9 +574,10 @@ public:    void dump() const;    /// CreateStackTemporary - Create a stack temporary, suitable for holding the -  /// specified value type. -  SDOperand CreateStackTemporary(MVT VT); -   +  /// specified value type.  If minAlign is specified, the slot size will have +  /// at least that alignment. +  SDOperand CreateStackTemporary(MVT VT, unsigned minAlign = 0); +    /// FoldSetCC - Constant fold a setcc to true or false.    SDOperand FoldSetCC(MVT VT, SDOperand N1,                        SDOperand N2, ISD::CondCode Cond); | 
