summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-04-08 04:48:15 +0000
committerAnders Carlsson <andersca@mac.com>2009-04-08 04:48:15 +0000
commit80f97ab08fe679307edcc31f3d7ceb6f0d951a5b (patch)
tree3782371f81b90c4ece4407f1f31d9977590579eb /clang/lib/CodeGen/CGBuiltin.cpp
parenta72576e92bf483216bf3d0e5c1be84e7387434a7 (diff)
downloadbcm5719-llvm-80f97ab08fe679307edcc31f3d7ceb6f0d951a5b.tar.gz
bcm5719-llvm-80f97ab08fe679307edcc31f3d7ceb6f0d951a5b.zip
Add a destination type argument to EmitConstantExpr. This will be used for when the destination has a reference type. (No functionality change yet)
llvm-svn: 68593
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 0b40ec76e80..8767eb4fb36 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -66,7 +66,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,
switch (BuiltinID) {
default: break; // Handle intrinsics and libm functions below.
case Builtin::BI__builtin___CFStringMakeConstantString:
- return RValue::get(CGM.EmitConstantExpr(E, 0));
+ return RValue::get(CGM.EmitConstantExpr(E, E->getType(), 0));
case Builtin::BI__builtin_stdarg_start:
case Builtin::BI__builtin_va_start:
case Builtin::BI__builtin_va_end: {
OpenPOWER on IntegriCloud