summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-01-12 20:54:36 +0000
committerHans Wennborg <hans@hanshq.net>2016-01-12 20:54:36 +0000
commit45c7439d11214d8b1a80edd9308537bb2d48c0e7 (patch)
tree85363084774182cd8cad42d0a05d91fad3a67ee8 /clang/lib/CodeGen
parent73ca3ab1b488cb064281fe17f41644b3e194a0a0 (diff)
downloadbcm5719-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.cpp2
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;
};
OpenPOWER on IntegriCloud