projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c06db02
)
[ORC] Narrow a cast: the block guarded by the condition only handles
author
Lang Hames
<lhames@gmail.com>
Fri, 28 Sep 2018 20:16:16 +0000
(20:16 +0000)
committer
Lang Hames
<lhames@gmail.com>
Fri, 28 Sep 2018 20:16:16 +0000
(20:16 +0000)
GlobalVariables, not all GlobalValues.
llvm-svn: 343358
llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
b/llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
index
fc788d9
..
295a9bc
100644
(file)
--- a/
llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
+++ b/
llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
@@
-36,7
+36,7
@@
static void extractAliases(MaterializationResponsibility &R, Module &M,
A->replaceAllUsesWith(F);
A->eraseFromParent();
F->setName(AliasName);
- } else if (isa<GlobalVa
lu
e>(Aliasee)) {
+ } else if (isa<GlobalVa
riabl
e>(Aliasee)) {
auto *G = cloneGlobalVariableDecl(M, *cast<GlobalVariable>(Aliasee));
A->replaceAllUsesWith(G);
A->eraseFromParent();