diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-04 02:43:40 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-04 02:43:40 +0000 |
commit | 4b1942cb8b63f525979b7c849169224276ea7df1 (patch) | |
tree | d1c6b5fb24399fbe941963c5b471c780f0e96444 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 495634e5ac146410bf9fef6df59e521cedbfd3bb (diff) | |
download | bcm5719-llvm-4b1942cb8b63f525979b7c849169224276ea7df1.tar.gz bcm5719-llvm-4b1942cb8b63f525979b7c849169224276ea7df1.zip |
Make functions returning a struct indirectly evaluate the returned struct
directly into the sret pointer. This is an optimization in C, but is required
for correctness in C++ for classes with a non-trivial copy constructor.
llvm-svn: 90526
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 0838cf0f814..bf791abfbc8 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -92,7 +92,7 @@ public: llvm::BasicBlock *ReturnBlock; /// ReturnValue - The temporary alloca to hold the return value. This is null /// iff the function has no return value. - llvm::Instruction *ReturnValue; + llvm::Value *ReturnValue; /// AllocaInsertPoint - This is an instruction in the entry block before which /// we prefer to insert allocas. |