diff options
Diffstat (limited to 'clang/lib/AST/ByteCode')
| -rw-r--r-- | clang/lib/AST/ByteCode/Floating.h | 3 | ||||
| -rw-r--r-- | clang/lib/AST/ByteCode/IntegralAP.h | 2 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/AST/ByteCode/Floating.h b/clang/lib/AST/ByteCode/Floating.h index 659892e..cc918dc 100644 --- a/clang/lib/AST/ByteCode/Floating.h +++ b/clang/lib/AST/ByteCode/Floating.h @@ -45,7 +45,8 @@ private:      if (singleWord())        return APFloat(getSemantics(), APInt(BitWidth, Val));      unsigned NumWords = numWords(); -    return APFloat(getSemantics(), APInt(BitWidth, NumWords, Memory)); +    return APFloat(getSemantics(), +                   APInt(BitWidth, llvm::ArrayRef(Memory, NumWords)));    }  public: diff --git a/clang/lib/AST/ByteCode/IntegralAP.h b/clang/lib/AST/ByteCode/IntegralAP.h index 6683db9..b11e6ee 100644 --- a/clang/lib/AST/ByteCode/IntegralAP.h +++ b/clang/lib/AST/ByteCode/IntegralAP.h @@ -63,7 +63,7 @@ public:      if (singleWord())        return APInt(BitWidth, Val, Signed);      unsigned NumWords = llvm::APInt::getNumWords(BitWidth); -    return llvm::APInt(BitWidth, NumWords, Memory); +    return llvm::APInt(BitWidth, llvm::ArrayRef(Memory, NumWords));    }  public:  | 
