summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-29 17:34:55 +0000
committerChris Lattner <sabre@nondot.org>2009-06-29 17:34:55 +0000
commite4edb8e81885f5271260c156e39c1fabce518a58 (patch)
treeac8aa8af9166590cd5ea571bc44c1652b380655b /clang/lib/AST/Expr.cpp
parent70d83e27a42d6498e2c30d38762710ae803bf7ae (diff)
downloadbcm5719-llvm-e4edb8e81885f5271260c156e39c1fabce518a58.tar.gz
bcm5719-llvm-e4edb8e81885f5271260c156e39c1fabce518a58.zip
Fix the FloatingLiteral API to take the isexact flag by value instead of
by pointer. llvm-svn: 74432
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index fce88cc0da2..4d90c7a9564 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -41,8 +41,7 @@ CharacterLiteral* CharacterLiteral::Clone(ASTContext &C) const {
}
FloatingLiteral* FloatingLiteral::Clone(ASTContext &C) const {
- bool exact = IsExact;
- return new (C) FloatingLiteral(Value, &exact, getType(), Loc);
+ return new (C) FloatingLiteral(Value, IsExact, getType(), Loc);
}
ImaginaryLiteral* ImaginaryLiteral::Clone(ASTContext &C) const {
OpenPOWER on IntegriCloud