[PATCH] Include ADT/APFloat.h from ScaledNumber.h

Michel Dänzer michel at daenzer.net
Mon Jun 23 20:32:33 PDT 2014


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




More information about the llvm-commits mailing list