[SCCP] Turn loads of null into undef instead of zero initialized values
[oota-llvm.git] / lib / MC / MCSymbol.cpp
index bbd34f157400d84d61197147f063f35e382bfda1..125380a9d14066aea4508f4a35d8f37b9366512e 100644 (file)
@@ -45,7 +45,7 @@ void MCSymbol::setVariableValue(const MCExpr *Value) {
          "Cannot give common/offset symbol a variable value");
   this->Value = Value;
   SymbolContents = SymContentsVariable;
-  SectionOrFragment = nullptr;
+  setUndefined();
 }
 
 void MCSymbol::print(raw_ostream &OS, const MCAsmInfo *MAI) const {