projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Remove access to the DataLayout in the TargetMachine"
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter
/
AsmPrinter.cpp
diff --git
a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 068b9172e9f541087a2c9c4d2823e75e9d99580d..ecdc7fa8b35ed840d9324c903b75243b2ad5e351 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@
-2101,7
+2101,7
@@
static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME,
if (!AP.GlobalGOTEquivs.count(GOTEquivSym))
return;
- const GlobalValue *BaseGV = dyn_cast<GlobalValue>(BaseCst);
+ const GlobalValue *BaseGV = dyn_cast
_or_null
<GlobalValue>(BaseCst);
if (!BaseGV)
return;