diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-01-12 20:54:36 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-01-12 20:54:36 +0000 |
commit | 45c7439d11214d8b1a80edd9308537bb2d48c0e7 (patch) | |
tree | 85363084774182cd8cad42d0a05d91fad3a67ee8 /clang/lib/CodeGen | |
parent | 73ca3ab1b488cb064281fe17f41644b3e194a0a0 (diff) | |
download | bcm5719-llvm-45c7439d11214d8b1a80edd9308537bb2d48c0e7.tar.gz bcm5719-llvm-45c7439d11214d8b1a80edd9308537bb2d48c0e7.zip |
Don't store CGOpenMPRegionInfo::CodeGen as a reference (PR26078)
The referenced llvm::function_ref<void(CodeGenFunction &)> object can go
away before CodeGen is used, resulting in a crash.
llvm-svn: 257516
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index 6d4fc9f64b4..3b97ba2469a 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -84,7 +84,7 @@ public: protected: CGOpenMPRegionKind RegionKind; - const RegionCodeGenTy &CodeGen; + RegionCodeGenTy CodeGen; OpenMPDirectiveKind Kind; bool HasCancel; }; |