summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-12-01 02:31:41 +0000
committerAnders Carlsson <andersca@mac.com>2008-12-01 02:31:41 +0000
commitc9687907c535d2eb51bd7f849fb06494a7e862cb (patch)
tree6eeea6d0c99031c47f7465eb2b3dab33721019c9 /clang/lib/CodeGen
parente7c2ac4b54a520b57b48fc66918cae215153491b (diff)
downloadbcm5719-llvm-c9687907c535d2eb51bd7f849fb06494a7e862cb.tar.gz
bcm5719-llvm-c9687907c535d2eb51bd7f849fb06494a7e862cb.zip
Use the new Expr::Evaluate
llvm-svn: 60321
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index a8eb8f794b7..a4b5973ec11 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -38,12 +38,12 @@ static RValue EmitBinaryAtomic(CodeGenFunction& CFG,
RValue CodeGenFunction::EmitBuiltinExpr(unsigned BuiltinID, const CallExpr *E) {
// See if we can constant fold this builtin. If so, don't emit it at all.
- APValue Result;
+ Expr::EvalResult Result;
if (E->Evaluate(Result, CGM.getContext())) {
- if (Result.isInt())
- return RValue::get(llvm::ConstantInt::get(Result.getInt()));
- assert(Result.isFloat() && "Unsupported constant type");
- return RValue::get(llvm::ConstantFP::get(Result.getFloat()));
+ if (Result.Val.isInt())
+ return RValue::get(llvm::ConstantInt::get(Result.Val.getInt()));
+ assert(Result.Val.isFloat() && "Unsupported constant type");
+ return RValue::get(llvm::ConstantFP::get(Result.Val.getFloat()));
}
switch (BuiltinID) {
OpenPOWER on IntegriCloud