mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
[TTI] Initialize a value to trigger a crash deterministically.
We expect the pointer to be initialized by the above loop, but if that's not executed, the contents are garbage. A fix for the crash will be committed immediately after. llvm-svn: 312353
This commit is contained in:
parent
e854f4814d
commit
8353a4dc9e
@ -674,7 +674,7 @@ public:
|
||||
int64_t Scale = 0;
|
||||
|
||||
auto GTI = gep_type_begin(PointeeType, Operands);
|
||||
Type *TargetType;
|
||||
Type *TargetType = nullptr;
|
||||
for (auto I = Operands.begin(); I != Operands.end(); ++I, ++GTI) {
|
||||
TargetType = GTI.getIndexedType();
|
||||
// We assume that the cost of Scalar GEP with constant index and the
|
||||
|
Loading…
Reference in New Issue
Block a user