]> granicus.if.org Git - clang/commit
[OPENMP] Fix for PR34014: OpenMP 4.5: Target construct in static method
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 22 Aug 2017 17:54:52 +0000 (17:54 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 22 Aug 2017 17:54:52 +0000 (17:54 +0000)
commit6c069179ecafe5ff6fa9af37a9143c0e7c17b33f
treecb92706d9cdcaf3c119e91f1d53e1ff4c4d2206e
parent6f2bcc862ba2b1c344a9d0a5c62c691768a06bd3
[OPENMP] Fix for PR34014: OpenMP 4.5: Target construct in static method
of class fails to map class static variable.

If the global variable is captured and it has several redeclarations,
sometimes it may lead to a compiler crash. Patch fixes this by working
only with canonical declarations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311479 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
lib/Sema/SemaExpr.cpp
test/OpenMP/target_map_codegen.cpp