diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp index 262d636fe01db1..9424ff5a169f95 100644 --- a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp +++ b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp @@ -1127,7 +1127,9 @@ Value *EarlyCSE::getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst, // For stores check the result values before checking memory generation // (otherwise isSameMemGeneration may crash). - Value *Result = MemInst.isStore() ? getOrCreateResult(Matching, Other->getType()) : nullptr; + Value *Result = MemInst.isStore() + ? getOrCreateResult(Matching, Other->getType()) + : nullptr; if (MemInst.isStore() && InVal.DefInst != Result) return nullptr;