Index: lib/ExecutionEngine/ExecutionEngine.cpp =================================================================== --- lib/ExecutionEngine/ExecutionEngine.cpp +++ lib/ExecutionEngine/ExecutionEngine.cpp @@ -865,6 +865,9 @@ report_fatal_error(OS.str()); } + if (const GlobalAlias *GA = dyn_cast(C)) + return getConstantValue(GA->getAliasee()); + // Otherwise, we have a simple constant. GenericValue Result; switch (C->getType()->getTypeID()) {