[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 6 00:23:28 PST 2005
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.172 -> 1.173
---
Log message:
minor clarity changes, no functionality difference.
---
Diffs of the changes: (+2 -2)
Reader.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.172 llvm/lib/Bytecode/Reader/Reader.cpp:1.173
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.172 Sun Nov 6 01:46:13 2005
+++ llvm/lib/Bytecode/Reader/Reader.cpp Sun Nov 6 02:23:17 2005
@@ -1901,8 +1901,7 @@
error("Invalid type (type type) for global var!");
unsigned LinkageID = (VarType >> 2) & 7;
bool isConstant = VarType & 1;
- bool hasInitializer = VarType & 2;
- GlobalValue::LinkageTypes Linkage;
+ bool hasInitializer = (VarType & 2) != 0;
unsigned Alignment = 0;
// An extension word is present when linkage = 3 (internal) and hasinit = 0.
@@ -1915,6 +1914,7 @@
Alignment = (1 << ((ExtWord >> 4) & 31)) >> 1;
}
+ GlobalValue::LinkageTypes Linkage;
switch (LinkageID) {
case 0: Linkage = GlobalValue::ExternalLinkage; break;
case 1: Linkage = GlobalValue::WeakLinkage; break;
More information about the llvm-commits
mailing list