Skip to content

Commit b62f734

Browse files
committed
[ORC] Narrow a cast: the block guarded by the condition only handles
GlobalVariables, not all GlobalValues. llvm-svn: 343358
1 parent c06db02 commit b62f734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static void extractAliases(MaterializationResponsibility &R, Module &M,
3636
A->replaceAllUsesWith(F);
3737
A->eraseFromParent();
3838
F->setName(AliasName);
39-
} else if (isa<GlobalValue>(Aliasee)) {
39+
} else if (isa<GlobalVariable>(Aliasee)) {
4040
auto *G = cloneGlobalVariableDecl(M, *cast<GlobalVariable>(Aliasee));
4141
A->replaceAllUsesWith(G);
4242
A->eraseFromParent();

0 commit comments

Comments
 (0)