From 557a2754a58b9887cfa8b9c50ffc0762428b1a36 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 5 May 2014 14:18:16 +0000 Subject: [PATCH] Trivial simplification. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207967 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/LTO/LTOModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LTO/LTOModule.cpp b/lib/LTO/LTOModule.cpp index 1f60acbd473..b687f29c659 100644 --- a/lib/LTO/LTOModule.cpp +++ b/lib/LTO/LTOModule.cpp @@ -396,7 +396,7 @@ void LTOModule::addDefinedSymbol(const GlobalValue *def, bool isFunction) { // set alignment part log2() can have rounding errors uint32_t align = def->getAlignment(); - uint32_t attr = align ? countTrailingZeros(def->getAlignment()) : 0; + uint32_t attr = align ? countTrailingZeros(align) : 0; // set permissions part if (isFunction) {