Remove IsDefinition from CodeGenModule::setTypeVisibility; it is always true.
llvm-svn: 124529
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index ae61661..d2be432 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -195,9 +195,8 @@
/// associated with the given type.
void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV,
const CXXRecordDecl *RD,
- bool IsForRTTI,
- bool IsForDefinition) const {
- setGlobalVisibility(GV, RD, IsForDefinition);
+ bool IsForRTTI) const {
+ setGlobalVisibility(GV, RD, /*IsForDefinition=*/true);
if (!CodeGenOpts.HiddenWeakVTables)
return;