projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCCP] Turn loads of null into undef instead of zero initialized values
[oota-llvm.git]
/
lib
/
MC
/
MCSymbol.cpp
diff --git
a/lib/MC/MCSymbol.cpp
b/lib/MC/MCSymbol.cpp
index bbd34f157400d84d61197147f063f35e382bfda1..125380a9d14066aea4508f4a35d8f37b9366512e 100644
(file)
--- a/
lib/MC/MCSymbol.cpp
+++ b/
lib/MC/MCSymbol.cpp
@@
-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 {