summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorIvan A. Kosarev <ikosarev@accesssoftek.com>2017-10-30 11:49:31 +0000
committerIvan A. Kosarev <ikosarev@accesssoftek.com>2017-10-30 11:49:31 +0000
commit9f9d157517812d2be68ac72ddf3c3db7c607a527 (patch)
tree383804591f3d1ebc7b1402bae7ad9c2a2c38a4ec /clang/lib/CodeGen/CGStmtOpenMP.cpp
parentf5142bf97f82e8eaebcb61767ab426f8e476595a (diff)
downloadbcm5719-llvm-9f9d157517812d2be68ac72ddf3c3db7c607a527.tar.gz
bcm5719-llvm-9f9d157517812d2be68ac72ddf3c3db7c607a527.zip
[CodeGen] Generate TBAA info for reference loads
Differential Revision: https://reviews.llvm.org/D39177 llvm-svn: 316896
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index f46ca23c55a..df7f7802d33 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -417,8 +417,7 @@ static llvm::Function *emitOutlinedFunctionPrologue(
Address ArgAddr = ArgLVal.getAddress();
if (!VarTy->isReferenceType()) {
if (ArgLVal.getType()->isLValueReferenceType()) {
- ArgAddr = CGF.EmitLoadOfReference(
- ArgAddr, ArgLVal.getType()->castAs<ReferenceType>());
+ ArgAddr = CGF.EmitLoadOfReference(ArgLVal);
} else if (!VarTy->isVariablyModifiedType() || !VarTy->isPointerType()) {
assert(ArgLVal.getType()->isPointerType());
ArgAddr = CGF.EmitLoadOfPointer(
OpenPOWER on IntegriCloud