diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-22 18:48:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-22 18:48:32 +0000 |
commit | 3d2313ef5de46228b157b1f1f6e306812dae3942 (patch) | |
tree | 8e70161862b2f7a734ebfdebee756c109a4708ea | |
parent | c9bec4bfea9090a08dd83a7b213f0c8adf8d78ec (diff) |
add comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42237 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Expr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 94c02aa3e9..73f730ef64 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -225,7 +225,11 @@ public: const llvm::APFloat &getValue() const { return Value; } - double getValueAsDouble() const { + /// getValueAsDouble - This returns the value as an inaccurate double. Note + /// that this may cause loss of precision, but is useful for debugging dumps + /// etc. + double getValueAsDouble() const { + // FIXME: We need something for long double here. if (cast<BuiltinType>(getType())->getKind() == BuiltinType::Float) return Value.convertToFloat(); else |