diff options
Diffstat (limited to 'clang/lib/AST/ByteCode/Floating.h')
| -rw-r--r-- | clang/lib/AST/ByteCode/Floating.h | 3 | 
1 files changed, 2 insertions, 1 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:  | 
