Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
Reviewed By: igorsugak

Differential Revision: D28477074

fbshipit-source-id: f15dfc45b9fb30c661ebe2899cd882676d0fdf2a
  • Loading branch information
zertosh authored and facebook-github-bot committed May 21, 2021
1 parent 4338f78 commit 6b23207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/IRGen/IRInstrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Value *IRInstrument::getIID(ESTree::Node *node) {
auto &sem = M_->getContext().getSourceErrorManager();
auto *buffer = sem.findBufferForLoc(start);
uint64_t bufferId = sem.findBufferIdForLoc(start);
uint64_t offset = (uint64_t)(
(uintptr_t)start.getPointer() - (uintptr_t)buffer->getBufferStart());
uint64_t offset =
(uint64_t)((uintptr_t)start.getPointer() - (uintptr_t)buffer->getBufferStart());

double id = (double)((bufferId << 32) | offset);
return builder_.getLiteralNumber(id);
Expand Down

0 comments on commit 6b23207

Please sign in to comment.