Skip to content

Commit aaae6ac

Browse files
authored
[clang][bytecode][NFC] Use Pointer::initializeAllElements() in Program (#155391)
We just initialized the entire string, so use this function instead.
1 parent 044e1aa commit aaae6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/Program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ unsigned Program::createGlobalString(const StringLiteral *S, const Expr *Base) {
101101
}
102102
}
103103
}
104-
Ptr.initialize();
104+
Ptr.initializeAllElements();
105105

106106
return GlobalIndex;
107107
}

0 commit comments

Comments
 (0)