File tree 1 file changed +2
-4
lines changed
llvm/lib/Transforms/Instrumentation
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1495,13 +1495,11 @@ static inline bool shouldRecordVTableAddr(GlobalVariable *GV) {
1495
1495
// FIXME: Introduce an internal alias like what's done for functions to reduce
1496
1496
// the number of relocation entries.
1497
1497
static inline Constant *getVTableAddrForProfData (GlobalVariable *GV) {
1498
- auto *Int8PtrTy = PointerType::getUnqual (GV->getContext ());
1499
-
1500
1498
// Store a nullptr in __profvt_ if a real address shouldn't be used.
1501
1499
if (!shouldRecordVTableAddr (GV))
1502
- return ConstantPointerNull::get (Int8PtrTy );
1500
+ return ConstantPointerNull::get (PointerType::getUnqual (GV-> getContext ()) );
1503
1501
1504
- return ConstantExpr::getBitCast (GV, Int8PtrTy) ;
1502
+ return GV ;
1505
1503
}
1506
1504
1507
1505
void InstrLowerer::getOrCreateVTableProfData (GlobalVariable *GV) {
You can’t perform that action at this time.
0 commit comments