Skip to content

Commit 1ca0f4c

Browse files
committed
Use CGM.UnqualPtrTy instead of CGM.VoidPtrTy
1 parent 542112f commit 1ca0f4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,12 +1716,12 @@ llvm::Function *CGOpenMPRuntime::emitThreadPrivateVarDefinition(
17161716
// Copying constructor for the threadprivate variable.
17171717
// Must be NULL - reserved by runtime, but currently it requires that this
17181718
// parameter is always NULL. Otherwise it fires assertion.
1719-
CopyCtor = llvm::Constant::getNullValue(CGM.VoidPtrTy);
1719+
CopyCtor = llvm::Constant::getNullValue(CGM.UnqualPtrTy);
17201720
if (Ctor == nullptr) {
1721-
Ctor = llvm::Constant::getNullValue(CGM.VoidPtrTy);
1721+
Ctor = llvm::Constant::getNullValue(CGM.UnqualPtrTy);
17221722
}
17231723
if (Dtor == nullptr) {
1724-
Dtor = llvm::Constant::getNullValue(CGM.VoidPtrTy);
1724+
Dtor = llvm::Constant::getNullValue(CGM.UnqualPtrTy);
17251725
}
17261726
if (!CGF) {
17271727
auto *InitFunctionTy =

0 commit comments

Comments
 (0)