aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-06 08:23:17 +0000
committerChris Lattner <sabre@nondot.org>2005-11-06 08:23:17 +0000
commitce5e04e710c69382e33137bada9768f642ec95fd (patch)
tree2159cb52591e28c6b50a845a00578de52881ab27
parent3aef571287c64b2fad36761050470914fa4a76da (diff)
downloadexternal_llvm-ce5e04e710c69382e33137bada9768f642ec95fd.zip
external_llvm-ce5e04e710c69382e33137bada9768f642ec95fd.tar.gz
external_llvm-ce5e04e710c69382e33137bada9768f642ec95fd.tar.bz2
minor clarity changes, no functionality difference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24223 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Bytecode/Reader/Reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index f52cfa6..165e085 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -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;