https://llvm.org/bugs/show_bug.cgi?id=27451
Bug ID: 27451 Summary: Clang doesn't add LLVM lifetime markers for temporaries created by lifetime extension Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangb...@nondot.org Reporter: timshe...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified // RUN: clang++ -O2 -S -emit-llvm -fno-exceptions -std=c++11 %s -o - | FileCheck %s // CHECK: @llvm.lifetime.start #include <string> extern void Bar(const std::string&); void Foo() { // Both string objects should share the same stack slot, but they don't. { const std::string& v = {"asdf"}; Bar(v); } { const std::string& v = {"adsf"}; Bar(v); } } -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs