Remove an unnecessary use of pointee types introduced in r194220
[oota-llvm.git] / lib / MC / MCAssembler.cpp
index 4ec81b3c3bb0737c677e852767a66bde611bed3b..09a27fec986047211c383a39934441fdaffcf925 100644 (file)
@@ -137,7 +137,7 @@ static bool getSymbolOffsetImpl(const MCAsmLayout &Layout, const MCSymbol &S,
 
   // If SD is a variable, evaluate it.
   MCValue Target;
-  if (!S.getVariableValue()->evaluateAsRelocatable(Target, &Layout, nullptr))
+  if (!S.getVariableValue()->evaluateAsValue(Target, Layout))
     report_fatal_error("unable to evaluate offset for variable '" +
                        S.getName() + "'");