[PATCH] Include ADT/APFloat.h from ScaledNumber.h
Alexey Samsonov
vonosmas at gmail.com
Mon Jun 23 23:08:57 PDT 2014
I think you should just #include <tuple>, which defines std::tie. r211569
should fix this.
On Mon, Jun 23, 2014 at 8:32 PM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Fixes build failure due to undefined std::tie:
>
> In file included from
> /home/daenzer/src/llvm-git/llvm/lib/Support/ScaledNumber.cpp:14:
> /home/daenzer/src/llvm-git/llvm/include/llvm/Support/ScaledNumber.h:610:5:
> error: no member named 'tie' in namespace 'std'; did you mean 'time'?
> std::tie(Digits, Scale) =
> ^~~~~~~~
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
>
> This is probably not the proper fix, just pointing out the problem.
>
> include/llvm/Support/ScaledNumber.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/llvm/Support/ScaledNumber.h
> b/include/llvm/Support/ScaledNumber.h
> index c0818d9..bddecfc 100644
> --- a/include/llvm/Support/ScaledNumber.h
> +++ b/include/llvm/Support/ScaledNumber.h
> @@ -22,6 +22,7 @@
> #ifndef LLVM_SUPPORT_SCALEDNUMBER_H
> #define LLVM_SUPPORT_SCALEDNUMBER_H
>
> +#include "llvm/ADT/APFloat.h"
> #include "llvm/Support/MathExtras.h"
>
> #include <algorithm>
> --
> 2.0.0
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
--
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140623/be52f26c/attachment.html>
More information about the llvm-commits
mailing list