minor clarity changes, no functionality difference.
[oota-llvm.git] / lib / Bytecode / Reader / Reader.cpp
index f52cfa616787c7a440cf73e1a8c1bf0c50e27d1b..165e085cf4c71ad059a5cb742ac8a226e6d6b1f8 100644 (file)
@@ -1901,8 +1901,7 @@ void BytecodeReader::ParseModuleGlobalInfo() {
       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 @@ void BytecodeReader::ParseModuleGlobalInfo() {
       Alignment = (1 << ((ExtWord >> 4) & 31)) >> 1;
     }
 
+    GlobalValue::LinkageTypes Linkage;
     switch (LinkageID) {
     case 0: Linkage = GlobalValue::ExternalLinkage;  break;
     case 1: Linkage = GlobalValue::WeakLinkage;      break;