diff options
author | John McCall <rjmccall@apple.com> | 2011-08-26 07:31:35 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-08-26 07:31:35 +0000 |
commit | 46759f4f46e51976ba459b18d163b8e1e354665f (patch) | |
tree | fbcba14666c25edcd201b5028a3ff23ac5f7f7e6 /clang/lib/CodeGen/CGValue.h | |
parent | f3b6507e261e99709aae054b372259bfe7400b9e (diff) | |
download | bcm5719-llvm-46759f4f46e51976ba459b18d163b8e1e354665f.tar.gz bcm5719-llvm-46759f4f46e51976ba459b18d163b8e1e354665f.zip |
Since the 'is aliased' bit is critical for correctness in C++, it
really shouldn't be optional. Fix the remaining place where a
temporary was being passed as potentially-aliased memory.
Fixes PR10756.
llvm-svn: 138627
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
-rw-r--r-- | clang/lib/CodeGen/CGValue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h index c448949d134..36b318fb2fd 100644 --- a/clang/lib/CodeGen/CGValue.h +++ b/clang/lib/CodeGen/CGValue.h @@ -383,7 +383,7 @@ public: static AggValueSlot forAddr(llvm::Value *addr, Qualifiers quals, IsDestructed_t isDestructed, NeedsGCBarriers_t needsGC, - IsAliased_t isAliased = IsAliased, + IsAliased_t isAliased, IsZeroed_t isZeroed = IsNotZeroed) { AggValueSlot AV; AV.Addr = addr; @@ -397,7 +397,7 @@ public: static AggValueSlot forLValue(LValue LV, IsDestructed_t isDestructed, NeedsGCBarriers_t needsGC, - IsAliased_t isAliased = IsAliased, + IsAliased_t isAliased, IsZeroed_t isZeroed = IsNotZeroed) { return forAddr(LV.getAddress(), LV.getQuals(), isDestructed, needsGC, isAliased, isZeroed); |